04-16-2014 02:42 AM
Hi,
I am a newbie to labview and currently struggling to in writing VI for controlling Agilent 33521A function generator.
Basically, I would like to control the function generator and receive its output from the oscilloscope.
I have attached the image of my current VI which contains the SCPI code for controlling outputs from the function generator.
However, I would like to give specific frequency of the output for given time and other frequency (same waveform with different F) after some fixed time.
Thus, I want a frequency stored (like "a=frequency") and an user control knob or a box in the front panel for this frequency user input. And possibly use this stored value to somewhere else; like calculating time division at oscilloscope capture.
I am sorry if this is not clear enough. Any advise would be a great help.
Thanks!
04-16-2014 09:52 AM
You just need make another loop for controlling your function generator. As long as you know the commands, just build them up and send whenever you need to. I would also recommend looking for a driver and use that instead of building the SCPI commands yourself (see here). It makes life a little easier.
04-17-2014 04:28 AM