01-14-2011 05:02 AM
Hello, I am trying to change a time base during reading muliple waveforms. And here the error comes: VISA: (Hex 0xBFFF000E) The given session or object reference is invalid. I am using LeCroy WaveRuner 204Xi. Everything else works fine, including configuring channels. I enclose my Vi. Could you please help me? Thank you in advance! Radek Chrapkiewicz --------------------- Institute of Experimental Optics, University of Warsaw Poland
01-14-2011 12:05 PM
Hi,
There is a sub vi missing (ZapisOscyloskop.vi) from your attachment.
The error you are getting indicates that either the VISA connection has been closed or you have wired an incorrect VISA Resource Name to the vi causing the error.
So, after I delete the missing vi and run this, I get the error no matter what I change. Timbase, Channels, etc.
I also see that anytime you change the "Extra Channels" control, you are losing the VISA Resource (you did not wire it through).
I would first start by making sure the event finishes before trying to trigger another acquisition.
When the event fires, you are sending commands to the scope and then trying to trigger an acquisition.
The commands from the event have not finished executing on the scope. (It is like you are turning a knob while pressing the "Single" button at the same time).
If I put a wait in the event, I can wait long enough and the vi works great. (a wait is not the right way to do it, it was just the fastest way for me to verify it was a timing issue).
There are a few ways to ensure the commands are finished executing.
Start on page 22 of this manual: http://www.lecroy.com/files/manuals/WM-RCM-E_Rev_D.pdf
I hope this get you up and running!
Leonard