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: 

simultaneous waveform output NI-6731

How can I output waveforms on two AO channels, say DAC0OUT and DAC1OUT simultaneously? I am using Visual C++ and have been using the WFM_Op(..) function to output one signal on one AO channel. The other signal should be the same signal as on DAC0OUT but with a phase shift of 90 degrees.

I read at this discussion forum that I can combine the two signals in one buffer, and output, say, value 1 on DAQ0OUT and value 2 on DAQ1OUT and value 3 on DAQ0OUT again.. Is this possible with the NI6731?
0 Kudos
Message 1 of 2
(2,613 Views)
Hello,

Please take a look at the following link and see the last example under LabWINDOWs/CVI section. The code you use will be similar in Visual C++ since it is also a C file only.

Link

In the WFM_Op, for multiple channels, you have to provide an array.

Please do let me know if the link helps.

Sincerely,
Sastry V
Applications Engineer
National Instruments
0 Kudos
Message 2 of 2
(2,613 Views)