Closed cpagravel closed 3 years ago
This attribute appears to be accessed in read
but has not been implemented for the resource. Looks like I made a mistake. Can you add "SUPPRESS_END_EN"
to the list at https://github.com/pyvisa/pyvisa-py/blob/main/pyvisa_py/usb.py#L87, alternatively you could comment out the line https://github.com/pyvisa/pyvisa-py/blob/main/pyvisa_py/usb.py#L141 and the following ones ? If you can confirm the first fix works for you I would love to get a PR for it.
Thanks for the quick response. I'll try adding "SUPPRESS_END_EN"
to the list you mentioned on L87 and re-running.
The first fix seemed to work, thanks for sparing the time! I'd be happy to throw up a PR.
I'm not entirely sure how I can reproduce this issue. I have an automated test that runs a lot of extra layers and I'm not able to reproduce the issue outside of using the device in the test. The issue occurs 100% of the time for me.
I'm using an ITECH- IT7321 device. It has a USB port for communication.
To Reproduce
Steps to reproduce the behavior:
I started debugging this issue but I haven't found a great explanation of what VI_ATTR_SUPPRESS_END_EN is. Could someone provide some details about this? It might help me isolate the issue to make something reproducible.
In my code I have a separate thread polling three measurements from the device. This occurs every 0.1 seconds.
instr.query(":MEASURE:CURRENT:AC?;:MEASURE:VOLTAGE:AC?;:MEASURE:POWER:AC?")
In another thread I am running additional threads for communicating with serial devices unrelated to pyvisa.
The error I have is below:
Output of
pyvisa-info
Note I tried downloading and compiling libusb1 from source to get the newest version in case that may help.