Open JaminMartin opened 1 month ago
@MatthieuDartiailh It is also worth noting that on subsequent runs of the above script, occasionally it returns ".1.20 R3 " which is the trailing end of "Siglent Technologies,SDS2352X-E,SDS2EDDQ6R0793,2.1.1.1.20 R3", that the ni-visa back-end successfully returns.
('ASRL/dev/ttyS4::INSTR', 'USB0::62700::4112::SDS2EDDQ6R0793::0::INSTR')
Error: [Errno 13] could not open port /dev/ttyS4: [Errno 13] Permission denied: '/dev/ttyS4'
.1.20 R3
Instrument details
Output of
pyvisa-info
Hello, I am having communication issues with an oscilloscope only using the pyvisa-py back-end. The issue seems to be similar to the issues presented here
This is a minimal configuration:
import pyvisa
rm = pyvisa.ResourceManager()
resources = rm.list_resources() print(resources) for i in range(len(resources)): try: my_instrument = rm.open_resource(resources[i]) query = my_instrument.query('*IDN?').strip() print(query) if query == 'Siglent Technologies,SDS2352X-E,SDS2EDDQ6R0793,2.1.1.1.20 R3': print("hazah!") my_instrument.close() except Exception as e: print("Error:", e) continue
this system has a bunch of
'ASRL1::INSTR'
and there are not privileges to connect to them hence the try, except block.When using
ni-visa
as the backend I get the resultwhen changing the visa backend to
"@py"
I get this output:Most of these warnings dont matter in this context, however the last error is the crux of the issue.
which has been seen on other oscilloscopes.
Any ideas of things to try to get around this issue would be greatly appreciated!
here is some additional system info!