Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

How to perform 2 AOs and 1 AI simultaneously in C/C++ programming

�2 analog outputs and 1 analog inputs simultaneously�

I need to outputs two sine waves of different frequencies, phases and amplitudes to analog outputs 0 and 1. It simultaneously synchronously reads from analog input 0 and when the acquisition stops it graphs analog input 0.

The clock signal of the analog input is routed to one of the analog outputs so every time an analog input occurs, an analog out is triggered to occur, thus synchronizing the input and output.

I want to modify the this program (2 analog outputs and 2 analog inputs): http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=B45EACE3E72F56A4E034080020E74861&p_node=DZ52337&p_source=External .
However, I just keep receiving error information.

Could you please tell
me how to do it?

Thank you very much!

Marlon
0 Kudos
Message 11 of 12
(1,299 Views)
Marlon,

The example that you linked appears to be exactly what you are looking for. The readme file states:

"The c code synchronizes analog out put with analog input. Two signals are output on the two analog out channels at the same time as two signals are input on channels 1 and 2. "

What exactly are you having trouble with? What errors are you getting?
0 Kudos
Message 12 of 12
(1,299 Views)