09-02-2011 03:00 AM - edited 09-02-2011 03:03 AM
Hi again gcass,
You see those white Sub VI's you have used to reference different lines to clock different tasks? You can use those in the same way you have done to reference the Counter triggering terminals to drive other tasks as a trigger source to initialise your DAQ task.
If you want to trigger each task straight away, essentially as soon as you initiate the VI, you could reference the trigger source as one of the Timebase clock sources on your device. If you use this, your DAQ task will initialise on the next rising edge of the referenced high speed clock source in your device.
Regards,
09-02-2011 06:56 AM
09-02-2011 05:43 PM
gcass,
You might consider looking at some of the synchronization examples which can be found under Help » Find Examples » Hardware Input and Output » DAQmx » Synchronization. While you are doing AI and DO channels, I think that the Multi-Function-Synch AI-AO example may be a good place to start. This is a continuous acquisition but I believe it still applies heavily to the project you are working on. I think these examples will help clear up your questions about setting a trigger.
As far as the counter terminal, as Alex said, you could use one if you desire. I think that, if you look at the triggering specifically in the examples and run through the code with highlight execution, then it should give you a clear picture of how triggers are used and how it would be implemented in your code. Another good source of trigger examples would be any of the analog/digital input/output examples that have 'dig start' in its name.
Regards,
Trey C.
09-02-2011 06:11 PM