From 11:00 PM CST Friday, Feb 14th - 6:30 PM CST Saturday, Feb 15th, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Keysight Waveform generator 33521B hangs up

Solved!
Go to solution

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?

0 Kudos
Message 1 of 14
(5,684 Views)

If it is connected with USB have you disabled your PC power saving mode?

(If not never mind)

 

Ben64

0 Kudos
Message 2 of 14
(5,677 Views)

Yes, it is connected with the USB and the power saving is not active.

0 Kudos
Message 3 of 14
(5,666 Views)

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

0 Kudos
Message 4 of 14
(5,634 Views)

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.

0 Kudos
Message 5 of 14
(5,625 Views)

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.

0 Kudos
Message 6 of 14
(5,620 Views)