-
-
Notifications
You must be signed in to change notification settings - Fork 133
Closed
Description
Linux, Python3 - talking to a Rigol ds1102e scope.
Most operations complete ok.
Trying to get the channel data from the scope.
ie: rawdata = inst.query_binary_values(":WAV:DATA? CHAN1")[10:]
Which is on the order of 1024 n-bit values. (I think - not really sure)
usbtmc.py croaks.
File "./test.py", line 42, in <module>
main()
File "./test.py", line 29, in main
rawdata = inst.query_binary_values(":WAV:DATA? CHAN1")[10:]
File "/usr/local/lib/python3.4/dist-packages/pyvisa/resources/messagebased.py", line 458, in query_binary_values
block = self.read_raw()
File "/usr/local/lib/python3.4/dist-packages/pyvisa/resources/messagebased.py", line 283, in read_raw
chunk, status = self.visalib.read(self.session, size)
File "/usr/local/lib/python3.4/dist-packages/pyvisa-py/highlevel.py", line 297, in read
return self.sessions[session].read(count)
File "/usr/local/lib/python3.4/dist-packages/pyvisa-py/usb.py", line 107, in read
usb.USBError)
File "/usr/local/lib/python3.4/dist-packages/pyvisa-py/sessions.py", line 312, in _read
current = reader()
File "/usr/local/lib/python3.4/dist-packages/pyvisa-py/usb.py", line 101, in <lambda>
return self._read(lambda: self.interface.read(1),
File "/usr/local/lib/python3.4/dist-packages/pyvisa-py/protocols/usbtmc.py", line 327, in read
response = BulkInMessage.from_bytes(resp)
File "/usr/local/lib/python3.4/dist-packages/pyvisa-py/protocols/usbtmc.py", line 95, in from_bytes
assert msgid == MsgID.dev_dep_msg_in
AssertionError
Here are the setup details:
python3 -m visa info
Machine Details:
Platform ID: Linux-3.13.0-45-generic-i686-with-Ubuntu-14.04-trusty
Processor: i686
Python:
Implementation: CPython
Executable: /usr/bin/python3
Version: 3.4.0
Compiler: GCC 4.8.2
Bits: 32bit
Build: Apr 11 2014 13:05:18 (#default)
Unicode: UCS4
PyVISA Version: 1.6.3
Backends:
ni:
Version: 1.6.3 (bundled with PyVISA)
#1: /usr/lib/i386-linux-gnu/libvisa.so.0.0.0:
found by: auto
bitness: 32
Could not get more info:
VI_ERROR_NSUP_ATTR (-1073807331): The specified attribute is not defined or supported by the referenced object.
py:
Version: 0.1
TCPIP INSTR: Available
USB INSTR: Available via PyUSB (1.0.0b2). Backend: libusb1
ASRL INSTR: Available via PySerial (N/A)
Thanks for PyVisa-py - I've gotten further with it than with librevisa.
Let me know if you need any more details.
Jason H.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels