10-14-2008 08:34 AM
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.
10-14-2008 09:31 AM
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.
10-15-2008 06:50 AM
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 🙂