Questions tagged [visa]

VISA stands for Virtual Instrument Software Architecture. It is a communication and I/O standard for instrument communication, mainly used in the test & measurement industry. DO NOT USE this tag for the payment card Visa, nor for a travel visa related question.

188 questions
4
votes
1 answer

pyvisa gives errors but linux-gpib works

I am trying to control an Agilent 33120A Arbitrary Waveform Generator using pyvisa under Ubuntu 13.04 (Raring Ringtail). I have installed and set up everything that is necessary to communicate with the instrument using our labs NI GPIB-USB-B…
Christian
  • 83
  • 1
  • 3
4
votes
1 answer

Where does VISA go on the OSI stack?

I am looking at putting together a communications protocol for an embedded application, but I don't know much about high-level communications such as TCP/IP, etc. I'm more used to dealing with bits and bytes on I²C and SPI, etc. Someone has…
Toby
  • 9,696
  • 16
  • 68
  • 132
3
votes
2 answers

PyVisa and Agilent 823578 on Mac

I am trying to get PyVisa working on my mac. I have installed it and NI libraries but when I try to run the following simple python file from terminal in VS code: import sys import pyvisa as visa rm = visa.ResourceManager() rm.list_resources() inst…
Landon
  • 528
  • 2
  • 4
  • 22
3
votes
2 answers

How to Wait on Service Request (RQS)

**Note: Cross-posted at LabVIEW forums: http://forums.ni.com/t5/LabVIEW/C-VISA-wait-on-RQS/td-p/3122939 I'm trying to write a simple C# (.NET 4.0) program to control a Keithley 2400 SMU over VISA GPIB and I'm having trouble with getting the program…
dthor
  • 1,749
  • 1
  • 18
  • 45
3
votes
3 answers

How to use Pyvisa1.4 in Python3.2, a lot of unexpected errors generated

Previously I've used PyVisa1.4 in Python2.7, and everything works fine. Now I need to use Pyvisa1.4 in Python3.2. I knew that some syntax are changed in Python3.2. Therefore I use the 2to3 to convert the originalPysiva .py files into the new format…
user1393258
3
votes
2 answers

How to return a wrong message if there is no device connected when I use VISA?

For exmaple, as follows, I can simply initialize my device by using following code if my device is connected properly. from visa import * my_instrument = instrument("GPIB::14") But what if the device is not connected to the computer? What I want to…
user1393258
2
votes
1 answer

ImportError: No module named

I'm migrating PyVisa from Python 2.6 to Python 3.2. I'm able to install the module. It's listed in C:\Python32\Lib\site-packages\pyvisa The __init__.py file imports a module (vpp43.py) from this folder. At this line I get following error: Traceback…
Razer
  • 7,843
  • 16
  • 55
  • 103
2
votes
1 answer

How do you connect PyVisa to an Arduino Uno?

I'm trying to connect my Arduino Uno to my computer and writing code in python using PyVisa. I have installed PyVisa correctly, since it has worked with other devices. For some reason the Arduino Uno never returns a response. I'm using the NI Visa…
2
votes
0 answers

Does SCPI allow overloaded commands?

I'm working on implementation of a simple SCPI parser for an instrument that will support VISA API. I wonder if there are any restrictions to support commands that may be called with different set of arguments, like overloaded functions in…
Roman
  • 515
  • 5
  • 16
2
votes
1 answer

Add new VISA network device to resources

I'm setting up a test environment including several instruments connected via LAN(TCP/IP) or USB. A Software shall be written in C# using the Ivi.Visa library. The instruments (which will change over time) get their IP address from a DHCP server so…
2
votes
0 answers

C#: Controlling a power supply using VISA libraries and the device USB-TP PIA4850. Not able to read the power supply output properly

I am tring to control a power supply (from Kikusui), using the Kikusui device, USB-TP PIA4850. I use the library, Ivi.Visa.Interop. Following is the code where I am succesfully able to control the power supply, by setting the desired voltage.…
2
votes
0 answers

Labview: VISA resource busy only when run from subVI

I'm working on a labview program that will talk to box via VISA commands. When I use the instrument assistant in the labview Instrument I/O palette as an open window, it will send and receive information perfectly. When I close the window and try…
2
votes
1 answer

How to setup pyvisa exception handler?

I try to use python 3 and pyvisa 1.8 to communicate with GPIB devices. but how to distinguish different type of excptions. For example: try: visa.ResourceManager().open_resources('COM1') exception visa.VisaIOError: when open fails,…
heyutu
  • 23
  • 1
  • 3
2
votes
1 answer

How do I write VB.NET program to remotely control 6060B (electric load)

I am writing a vb.net program to remotely control the 6060B (electric load). So far I have successfully connected my pc to the 6060B and I am able to query information from the load. Below is the part of the code I wrote: Dim mbSession As…
success
  • 75
  • 2
  • 11
2
votes
1 answer

Python: PyVisa with USB connection - > wait_for_srq() or wait_on_event?

I'm trying to controlling to a USB instrument (Keithley 2450) using pyVisa but I get an error. I'm following the simple example on the pyVisa website I have a problem after I send a "service request" keithley.wait_for_srq() and it throws an error…
Mirza Grbic
  • 152
  • 1
  • 3
  • 14
1
2
3
12 13