11-07-2008 12:13 PM
Hello!
I'm running the full gamut here!
This program needs to utilize the following AI, DI, PWM I, AO, DO, and PWM O.
Using USB 6221 and 6229 DAQ.
At minimum, I would like to sycronize the AI and PWM I so I can create/convert the PWM data to waveform.
However, if I can sync all, I would feel much better.
Currently using 14 chan of AI, 8 chan of DI, counter 1 for PWM I, 1 chan of AO, 8 chan of DO, and counter 0 for PWM O.
I am writing to AO, DO, and PWM O only when that data changes (event).
I've included code for review of what I have at this time.
Thank you for any help!
11-11-2008 05:14 PM
Hello Oley,
This is a pretty good problem and there are a couple of things you can do.
Within each device you can synchronize the operations by sharing a clock and/or triggering the acquisitions off of each other. You can also export the start of one of your tasks in one device to a PFI line and use this the trigger the acquisition of the other device. For more information look at the detailed help for the following NI-DAQmx commands: DAQmx Trigger.vi and DAQmx Export Signal.vi. An interesting KnowledgeBase article on the subject is KnowledgeBase 2XSA43RY: What is the Difference Between the DAQmx Export Signal VI and the DAQmx Conn...
Let me know if you have any other questions or need additional clarification.
Regards,
Dan King