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,913 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,907 Views)