11-29-2017 12:16 PM
I am using drivers Agilent 3352X Series.lvlib for the waveform generator 33521B from Keysight.
First I am initializing the instrument with the VI "Initialize.vi". After some measurements I am closing it.
Sometimes when I would run the "Initialize.vi" again it hangs up for a minute and then comes back with timeout error.
Anyone that has seen the same problem?
Solved! Go to Solution.
11-29-2017 12:21 PM
11-29-2017 12:46 PM
Yes, it is connected with the USB and the power saving is not active.
11-30-2017 10:51 AM
Does the instrument give you an error? Do the Initialize.vi give you an error?
Why not post your code and we can see if there's a problem in the code that causes the error?
When you say close, are you running the Close.vi? If the instrument has received commands and you then terminate the program with the LabVIEW Stop icon you are leaving the instruments in an indeterminate state. Perhaps its waiting to receive data and ignore the next request.
I'll echo you should check power settings for USB. That one has hung me up a few times. The steps to disable it are here - https://helpdeskgeek.com/how-to/prevent-windows-from-powering-off-usb-device/
Craig
11-30-2017 12:22 PM
No, the instrument doesn't give me an error but LabView does in the Initialize.vi (timeout error).
I am using the Close.vi.
If it is a problem with the USB power setting, why does it always work the first time every time?
I'll post the important part of my code here.
11-30-2017 02:22 PM - edited 11-30-2017 02:31 PM
Hi hasse,
Are you familiar with Measurement & Automation Explorer (MAX)? Let's try to use VISA Test Panel and see if you get the same behavior. If not, probably the issue comes from the code.
Regards,
Jose F.