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
0
votes
3 answers

How do I dump text file contents into dictionary

Hi I'm using python 3 on mac and I'm trying to create a generic program to communicate with a range of different multimeters dependent on which text file is loaded. For example, I want a dictionary that will look something like this: prog_key =…
Kierran Purden
  • 451
  • 1
  • 5
  • 15
0
votes
1 answer

PyVISA SCPI commands and queries (issue with value update)

UPDATE: It seems to be working "OK" this am... although I am not sure why certain replies have /r/n at the end and why certain don't. I have explicitly turned Handshaking OFF... An example of the commands, queries, and replies is posted below. **I…
Ravi
  • 3
  • 2
  • 4
0
votes
1 answer

VISA Protocol with Java on Linux

I managed to automatize test equipment using SCPI commands via a TCP/IP socket with these instruments. However I would like to use the VISA library using Java on a Linux machine. Is there any way to use a VISA library with Java? Should I create my…
user2310493
  • 103
  • 2
  • 7
0
votes
0 answers

C# Programming Unisource 4100 GPIB DMM

I am trying to read voltage measurements from my Unisource 4100 GPIB DMM. I know I can connect to the device because I get appropriate responses with the commands '*RST' and '*IDN?', however I cannot get any responses with other commands such as…
0
votes
1 answer

Reading output buffer of Agilent 4156C using PyVisa

I'm trying to use PyVisa to control an Agilent 4156C using its FLEX command set. The communication seems to be working OK, as I can query the instrument with *IDN? and read the status byte. I also think I'm setting up my voltage sweep properly now,…
jwinterm
  • 334
  • 3
  • 11
0
votes
0 answers

how to send ASCII 182 character to TCP/IP instrument via python 2.7 (pyVISA, NIVISA)

I got an instrument (Vötsch climate chamber VT 4002) connected via TCP/IP and pyVISA as SOCKET and i can query it using *IDN?. Now I need to send a command to it that includes the ASCII 182 character combined with a normal string: instr =…
d307
  • 1
  • 2
0
votes
1 answer

Listening for GPIB events

I am controlling a test system using PyVisa/GPIB. The system is comprised of two separate testers (A and B) and a laptop. The the laptop passively listens for a GPIB message from tester A, when received the laptop triggers tester B. I am using the…
Ajax
  • 1,418
  • 2
  • 17
  • 38
0
votes
1 answer

NI-VISA library programming in C++ - out of scope error

I am currently trying to program a Rigol DS1054 Oscilloscope to output waveform data. To create this program, I am writing in C++ using Code::Blocks, but I have tried this on four other compilers (Netbeans, Eclipse Mars, Eclipse Juno, Visual Basic…
philipv
  • 31
  • 1
  • 7
0
votes
0 answers

How do I silence "VI_WARN_CONFIG_NLOADED" warning when using PyVisa?

I'm attempting to use PyVisa inside NodeJS using the Python-Shell module. And I have the python code working, talking to the HPIB equipment. Only, I'm getting the warning- c:\python34\lib\site-packages\pyvisa\ctwrapper\functions.py:1222:…
0
votes
2 answers

Not able to query instrument using PyVISA

I am trying to control Rohde & Schwarz signal generator using PyVISA PyVISA details is as follows. C:\Python27\lib\site-packages\pyvisa\ctwrapper\functions.py:1222: VisaIOWarning: VI_WARN_CONFIG_NLOADED (1073676407): The specified configuration…
nik
  • 8,387
  • 13
  • 36
  • 44
0
votes
0 answers

Is it possible to enable some kind of "data available event" on NI-VISA for TCP/IP SOCKET resource?

For Serial resource (Serial COM port) I enable VI_EVENT_ASRL_CHAR event. (After this event I'm checking for available data in buffer with reading attribute VI_ATTR_ASRL_AVAIL_NUM and reading all data from buffer) For TCP/IP I'm connecting to…
kepurlaukis
  • 324
  • 5
  • 16
0
votes
0 answers

pyVisa with cx_Freeze - TypeError: unexpected keyword argument

I've got a script using pyvisa. Over python console everything works fine but frozen I get a TypeError. debug.py: import visa def main(): visa.log_to_screen() rm = visa.ResourceManager() # works instr =…
Chickenmarkus
  • 1,131
  • 11
  • 25
0
votes
1 answer

Visual Basic 6.0 statement is not in valid namespace

I am studying Visual Basic 6.0, and I am building an application to capture a screenshot. I found some example code to study application. However, I am getting: statement is not in valid namespace However, it is pointing the error to "Private Sub…
Bob Ma
  • 197
  • 5
  • 11
  • 22
0
votes
1 answer

Virtual instrument software architecture

I'm confused about VISA. I try to build an VISA Interface to my Device. Which means applications should be able to control my device via VISA. The device is connected via USB to the PC and there are some DLLs, or TLB (what ever i want) to control…
Richy1989
  • 97
  • 7
0
votes
2 answers

PyVisa on OSX Mavericks not recognizing USB 6255

After following the pyvisa documentation very carefully, I'm unable to communicate with my NI USB 6255 via python. I'm using the correct distribution of python (the 32bit one), and I'm in a virtualenv so I don't screw up my normal one. after…
ChuckDavis
  • 219
  • 1
  • 2
  • 8