LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Incrementing a GPIB parameter in Labview

Hi

I an trying to product a program in labview that increaments a GPIB command
to a Function Generator.
The command format is: FRQ 1.0E + 2 (this equals 100Hz). I need to
increament this up 1MHz so,


I have written a bit of psudo code to demonstrate what I require.

For i = 1Hz to 1MHz

// Send freq requ. to function gen //
FRQ i

//QUERY Function Gen to ensure freq has been changed =Q //
If Q=FRQ then Next
else
Print "Error: out of sync!"
Stop



Regards

Wayne Lawson
0 Kudos
Message 1 of 2
(2,458 Views)
In my sample VI, you might need to change your "query command to query the frequency of the generator". I assume the step size is 100Hz. If you cannot get the data from generator, try to increase the bit count in VISA read. Good Luck.
------------------------------------------------------------------
When you feel sad, laugh
0 Kudos
Message 2 of 2
(2,458 Views)