-
-
Notifications
You must be signed in to change notification settings - Fork 124
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
[COM] Communication issue with LeCroy WaveRunner oscilloscope using USB #312
Comments
Now it is working with the NI backend, but detail before it workedI changed the oscilloscope to a different computer running Ubuntu 20.04 too, same configuration as the original. When I try to connect with the oscilloscope, the same error occurs. Now, with more time, I installed the NI-VISA library following the instructions for Ubuntu. So now in this computer
After this, the following strange sequence of events happened:
Also noted that All this happened without restarting the computer or the oscilloscope in the middle. It just happened within 30 seconds or so I was doing this random tests. I am just reporting this here in case it is of use to somebody, be it the developers (thank you BTW) or someone running into a similar issue (me in the future?). |
Just want to add a comment on this issue now that I have been dealing with it for a while. The problem persists, but there is a workaround. First of all, the switch between try:
oscilloscope = pyvisa.ResourceManager('@ivi').open_resource(args.oscilloscope_visa_name)
except pyvisa.errors.VisaIOError:
try:
pyvisa.ResourceManager('@py').open_resource(args.oscilloscope_visa_name) # This I already know it won't work, but it triggers something that makes the `@ivi` to work.
except:
pass
oscilloscope = pyvisa.ResourceManager('@ivi').open_resource(args.oscilloscope_visa_name) # Now this works. Don't ask me. With this weird connection mechanism, it works most of the times. There is one more thing, and it is that sometimes the connection still fails due to a busy resource error or so (sorry I don't have it right now) and the solution to this is to go to the oscilloscope and navigate to |
Just to chime in, we are seeing this error with 2 of our Lecroy scopes as well. It won't even open resource at all and faces the same pipe error. Models are: Lecroy HDO6104 and Lecroy WaveRunning 8000HD |
Can you have a look at the discussion in #256 and see if any of the investigated solution works in your case ? The more feedback we get the better. |
Instrument details
Output of
pyvisa-info
Description
I am getting
usb.core.USBError: [Errno 32] Pipe error
when I try to open the connection. This is my code:and the output
As seen, the communication with the Keithley works fine but fails with the oscilloscope.
Let me add that I have communicated with this very same oscilloscope in the past from Windows using PyVISA (probably using the NI backend).
The text was updated successfully, but these errors were encountered: