09-22-2010 08:52 AM
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.
09-23-2010 05:54 PM
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.