Questions tagged [pyvisa]

PyVisa or [ Py ]thon [ V ]irtual [ I ]nstrument [ S ]oftware [ A ]rchitecture is a python library, developed in order to control various measurement devices and test equipment via a GPIB, RS232, or USB connection.

PyVisa or Python Virtual Instrument Software Architecture is a python lib developed in order to control measurement devices and test equipment via GPIB, RS232, or USB.

166 questions
6
votes
1 answer

PyVISA not listing USB instrument on Linux

I am trying to communicate with a LeCroy WaveRunner 640Zi oscilloscope from a Raspberry Pi, they are connected with a USB cable. I have already done this under Windows, but now I am not able to make it work in Linux. If I run lsusb I see this: $…
user171780
  • 2,243
  • 1
  • 20
  • 43
5
votes
0 answers

After installing VISA and PyVisa, VISA module is not found

I'm on Mac OS X v10.8.5 (Mountain Lion). I've installed NI-VISA 5.4 and PyVisa 1.5. When I try 'import visa', I get this traceback: Traceback (most recent call last): File "", line 1, in ImportError: No module named visa Printing…
Crystal
  • 137
  • 1
  • 2
  • 7
4
votes
0 answers

pyvisa can not locate a VISA implementation

pyvisa can not locate a VISA implementation and fails to load NI-VISA back-end: >>> import visa >>> import platform >>> print(platform.architecture()) ('64bit', 'WindowsPE') >>> rm =…
Ajax
  • 1,418
  • 2
  • 17
  • 38
4
votes
2 answers

pyVISA: Return instrument to local mode programmatically

I am using pyVISA to control some instruments in a GPIB network. When I create a resource manager, all the instruments in my GPIB network enter remote mode, so the front panel displays are locked and do not update. When I close the resource manager,…
Violet
  • 311
  • 1
  • 4
  • 13
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
1 answer

GPIB communication with Python (PyVisa)

I am trying to communicate with a very old instrument (CCD camera) by Python. The GPIB programming manual from the instrument manufacturer published in 1999 only provides a basic command listing. It also describes some standard procedures for GPIB…
sssbbbaaa
  • 204
  • 2
  • 12
3
votes
2 answers

Unable to get full VISA address that includes the serial number

I do not have any prior experience in Python and was trying to see if I can query information from a device with USB VISA address. I am running a Raspbian GNU/Linux 9 (stretch) with a Python 3.5.3 Shell. The VISA packages for python was installed…
Arun Kumar
  • 235
  • 3
  • 18
3
votes
2 answers

PYVISA: How do I transfer binary block data so that the picture is properly formatted and saved onto my PC?

I am trying to transfer a screen shot from an Rhode & Schwarz - FSV Signal Analyzer to my PC. How do I transfer binary block data so that the picture is properly saved onto my PC from the Instrument? My code is below. A file gets saved to my…
3
votes
0 answers

pyVisa too slow with RS232

Simple program: import visa rm = visa.ResourceManager() list=rm.list_resources() print(list) # list[0] is RS-232 reference my_instrument = rm.open_resource(list[0]) print(my_instrument.query('*IDN?')) #it works fine until this point, asking for one…
2
votes
1 answer

pytest exit on failure only for a specific file

I'm using the pytest framework to run tests that interface with a set of test instruments. I'd like to have a set of initial tests in a single file that will check the connection and configuration of these instruments. If any of these tests fail,…
ErikJ
  • 23
  • 5
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

ValueError: Could not locate a VISA implementation. Install either the IVI binary or pyvisa-py

I'm trying build an executable of a Python script that reads from a digital multimeter connected via RS232-USB. To build, I'm using cxfreeze. For this, a setup.py file was written to management. When I run the Python script, everything happens…
Yan Araújo
  • 25
  • 1
  • 4
2
votes
0 answers

Ubuntu communication to a usb device

I am trying to communicate a USB device (power supply, bk 9115) to python a ubuntu machine- 20.04.02. The company suggested using NI-VISA drivers which are not available for ubuntu machines and I tried using alien to convert rpm drivers to .deb…
2
votes
0 answers

Error configuring a USB device using pyvisa

So, as context, I'm writing some controller software in Python for a RTM3004 oscilloscope for laboratory use. I had it working just fine on my laptop (Win10) and the previous laboratory computer (Linux), but upon changing to a new measurement…
Otto Hanski
  • 382
  • 1
  • 6
2
votes
4 answers

Python package unloaded before __del__ is called

I am using pyvisa to communicate via USB with an instrument. I am able to control it properly. Since it is a high voltage source, and it is dangerous to forget it with high voltage turned on, I wanted to implement the __del__ method in order to turn…
user171780
  • 2,243
  • 1
  • 20
  • 43
1
2 3
11 12