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.

Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

visa ressource + error in loop

Hi

 

I'm writing a program in Labview 2009 to control instruments via GPIB. I initialise the instruments, then enter a loop, where I vary certain parameters (for example, I do a frequency sweep with my function generator).

 

My question is, how do I pass the Visa ressource and error through the loop, so that I have the correct value which enters the loop each time ?

0 Kudos
Message 1 of 2
(3,965 Views)

Usually a shift regsiter is a good choice.  Monitor the error line inside the loop to detect any errors.  They can be handled in the loop or used to stop the loop.

 

Lynn

0 Kudos
Message 2 of 2
(3,959 Views)