From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

how to generat two different wafeforms onto ao channels USB-6353

Solved!
Go to solution

I' m using DAQmx driver from a C++ code to drive a USB-6353 device . It is possible from the same task to generate a sinwave on Dev1/ao0 and a Triangle waveform on Dev1/ao1?

 

Thanks in advance

0 Kudos
Message 1 of 2
(5,330 Views)
Solution
Accepted by topic author Enky

Yes you can, you just have to create a new generation task in MAX with two channels, put this task as an input in DAQmx Timing, and then create an array with 2 elements, one for each waveform.

 

I am sending you an example, where you just have to modify the input task and the array.You need one array with two elements, one for each waveform.

Of course you will have the same sample rate for both generations!

Hope it helps!

Antonios
0 Kudos
Message 2 of 2
(5,321 Views)