04-22-2025 03:20 AM
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.
04-22-2025 06:58 AM - edited 04-22-2025 06:59 AM
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.
04-22-2025 07:10 AM
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.
04-22-2025 05:15 PM
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.