LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Synchronization between analog input and analog output

I am working on an application in LabVIEW where I want to perform data acquisition using analog inputs and generate an analog signal with analog outputs. I would like to know how I can synchronize the two. Specifically, I want the analog signal generation to start and stop at the same time as the data acquisition when I stop the acquisition.

Can you please help me?

 

 

 

Thanks.

0 Kudos
Message 1 of 4
(216 Views)

Synchronization is dependent on the types of devices you are trying to synchronize.

Attached is some code that performs start-trigger synchronization. If at least one of your ai channels is also on a device (such as a 4461) providing the ao, the ai and ao tasks will also be clock synchronized.

The LabVIEW Sound and Vibration Toolkit ships with several examples for stimulus-response measurements. These examples use more robust (and also more complex) synchronization code in order to support more ai and ao device options.

Doug
Enthusiast for LabVIEW, DAQmx, and Sound and Vibration
0 Kudos
Message 2 of 4
(180 Views)

Hello,

Thank you for your response;

I am working with the same acquisition board, the NI USB-6212, and I want to use the analog inputs for acquisition and an analog output to generate a signal.

0 Kudos
Message 3 of 4
(175 Views)

I am working with the same acquisition board, the NI USB-6212, and I want to use the analog inputs for acquisition and an analog output to generate a signal.

Great! Give the code attached previously a try. 

Doug
Enthusiast for LabVIEW, DAQmx, and Sound and Vibration
0 Kudos
Message 4 of 4
(133 Views)