LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Triggering my analog input signal off my analog output signal

Hello, I am using a USB-6251 Daq board and I am outputting a sine wave that the user can adjust while the program is running, then I am reading the sine wave from a microphone attached onto a linear optical encoder inside a  tube and plotting the Sound Intensity (y) vs. the Microphone Position (x). My problem is that my ao0 and my ai2 are not in sync and input a signal that can be anywhere 0-360' out of phase from the output frequency. The Analog Out is making changes to the SampClk.Rate when the user changes frequencies making it hard to sync the Analog in signal.

 

Thanks.

Download All
0 Kudos
Message 1 of 2
(3,061 Views)

Hey,

 

So it sounds like you are looking for a way to synchronize both your AI and AO on this USB DAQ?  You can implement triggers for synchronization by starting your AO off of your AI internal start trigger.  A good example which does this is in Example Finder under Hardware Input and Output » DAQmx » Synchronization » Multi-Function » Multi-Function Sync AI-AO.vi.  What this will do is begin your AI and AO at the same time using ai/Starttrigger for the trigger on AO.  Check it out and let me know if that is similar to what you are wanting.

Kyle A.
National Instruments
Senior Applications Engineer
0 Kudos
Message 2 of 2
(3,010 Views)