05-08-2008 12:03 PM
05-12-2008 12:18 PM
Hi garyp,
I understand that you are trying to synchronize an Analog Input and an Analog Output task; I’m assuming that you are using the 6289 that is one of our M-Series cards. If I understood correctly you want to start the analog input task when the analog output task start as well, so you are using the ao/StartTrigger signal to synchronize both. With the ao/StartTrigger signal you can initiate a new generation, so it is the trigger to start the analog output. That’s why right now your program doesn’t work when you set the analog input to wait on the ao/StartTrigger to start.
I don’t know what programming language you are using but I would like to point you to the Synchronization examples, with the DAQmx drivers there are shipping examples installed, I recommend looking at the Synchronization > Multi-Function-Synch AI-AO. That example sets the Analog Output to trigger off the AI Start Trigger. Please let me know if I misunderstood your application or if you have more questions. I hope this is helpful,