Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

real time control 33220A

hi, I am trying to control a AWG 33220A Agilent.  I can send it commands fine, but if I want to update the settings, I have to stop the program and resend with the updated setting, in other words I cannot control it in real time.  I have attached an image of the code I am using at the moment, if someone could give me  hand with automating this a bit, that be great. For example, when I run this, I might want to change the amplitude without stoping the output and re-exicuting the whole vi.  Thanks
0 Kudos
Message 1 of 2
(3,127 Views)

I would suggest you place the commands inside an event structure. For example, you could have a value change event for the waveform configure controls. Another event for the output enable control, etc. Look at the examples of the event structure. Yours is a common and pretty simple problem.

 

The event structure is not part of the base version of LabVIEW. If you have this, then you will have to poll the state of the controls in a while loop and use shift registers to keep the last value and compare that to the current value. Not difficutl but tedious and more than enough reason to upgrade.

 

 

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