07-17-2007 01:02 PM
07-18-2007 04:26 PM
Hello Azazel,
I would refer to the multi-function example (Help >> Find Examples >> Hardware Input and Output >> DAQmx >> Synchronization >> Multi-Function >> Multi-Function-Synch AI-AO.vi). This example demonstrates how to set up the AO task correctly. I would also refer to the finite retriggerable example (Help >> Find Examples >> Hardware Input and Output >> DAQmx >> Generating Digital Pulses >> Gen Dig Pulse Train-Finite-Retriggerable.vi)
You might also consider setting up a start trigger on the AO task to wait for the counter task to start. Once the start task vi is executed, that task will begin to perform its desired function. The DAQmx write needs to be called before the start task is executed. The DAQmx write vi is going to send the waveform to the FIFO (On board memory). I would place a DAQmx Is Task Done.vi in the while loop for the counter task.
The multi-function example will give a starting point for connecting your AI & AO tasks. The counter example should be incorporated into the multi-function example to give you the functionality that you need.
07-25-2007 10:03 AM