-
-
Notifications
You must be signed in to change notification settings - Fork 123
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Raspberry Pi issues with write_raw() #432
Comments
Is the behavior the same if you proceed to a single write ? Since you use write_raw the write_termination will not matter but you will get different end line on different OS. Could you try stripping the end of the file and adding manually |
I can't get it to work with a single write, not even updating the name. I've tried various line terminations as well: Keeping the In my above example, what unspecified characters are being written after each I've tried adding a |
Using Wireshark with usbmon (Linux) and USBPcap (Windows), it can be seen that write_raw is sending all the bytes at once on Windows (using IVI backend), but it is being chunked by pyvisa-py on Linux. I've chunked the data in the Python code to match the chunk sizes (76 bytes total, but 64 bytes is payload), but that hasn't worked. Can I send the bytes all together? I'm also wondering if the device setup is correct. Sending filters for Wireshark files: |
Writing a waveform to a UNI-T UTG932E function generator documentation using write_raw() over USB (via pyusb) works on Windows but not from a RPi 2. There are no errors given, the name in the command is properly shown on the device (also using write_raw()) but the data is not set. Very small waveforms with only 30 points fail too. The hashes in the following code are equal on both Windows and the RPi. There are no other issues controlling the device from the RPi. Different
write_termination
values have been tried.What could be the issue, and how can this be debugged?
Output of
pyvisa-info
:The text was updated successfully, but these errors were encountered: