Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

How to run several function generators using labview

Hello,

 

I need to control 3 Agilent function generators by using a LabVIEW program. Each generator should run with different values ( signal type, freq. etc). I am new to LabVIEW programming and I'd like to know if and how I can include all 3 generators in the same program. I've installed the driver and can run one generator at a time.  Thank you.

0 Kudos
Message 1 of 3
(3,320 Views)

The simplest way would be to just copy and paste your existing code with different VISA Resource Name controls for each initialize function. You could also set it up so that you have 3 initialize functions (each with a different resource) in a row, 3 functions in a row to set the frequency, 3 functions in a row to set amplitude, etc. You would have to be careful wiring the resource name out from the intialize to the corresponding functions. Another way would be have your code inside a for loop and outside the loop, have arrays of resource names, amplitude values, frequencies, etc.

 

If you get stuck, post what you have written.

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

Hi,

Thank you very much.

I placed subvi for each generator in  case structures inside a stacked sequence. The main vi can call each generator separately and it works  🙂

 

0 Kudos
Message 3 of 3
(3,293 Views)