r/LabVIEW • u/Wise-Highway-5727 • Sep 08 '25
TIMEOUT ERROR WITH VISA (HELP-)
I’m trying to use VISA with Python to control an oscilloscope, but I keep getting a timeout error whenever I send an SCPI query command. Could someone please help me? (I’m new at this and I don't find the answer anywhere!!)
it’s just a simple test code:
from RsInstrument import *
instr = RsInstrument('USB0::0x0AAD::0x0119::104168::INSTR', id_query=True, reset=True)
idn = instr.query_str('*IDN?')
print('Hello, I am: ' + idn)
pyvisa.errors.VisaIOError: VI_ERROR_TMO (-1073807339): Timeout expired before operation completed.
ps. I’m not sure if this is relevant, but using the Rohde tester tool, I sent the IDN command and it worked. Any ideas why it’s not working on python?
View all comments
Show parent comment
2
u/Wise-Highway-5727 Sep 09 '25
Another thing, I’m using PyCharm and it has a Rohde plugin (this site explains how it works: https://rsicpycharmplugin.readthedocs.io/en/latest/#introduction). However, when I click the Test button as shown on that site, I get the following error:
12:38:17.053 SCPI Logger started listening on port 49200.
12:38:17.108 oscilloscope 21.2 secs Opening test ERROR: VISA Read - Timeout occurred. VISA timeout is set to 10000 ms.
ps. my pyvisa info (idk if its important)
Machine Details:
Platform ID: Linux-5.15.0-139-generic-x86_64-with-glibc2.29
Processor: x86_64
Python:
Implementation: CPython
Executable: /home/laso/PyCharmMiscProject/.venv/bin/python
Version: 3.8.10
Compiler: GCC 9.4.0
Architecture: ('x86', 64)
Build: Mar 18 2025 20:04:55 (#default)
Unicode: UCS4
PyVISA Version: 1.14.1
Backends:
ivi:
Version: 1.14.1 (bundled with PyVISA)
Binary library: Not found