01-19-2011 09:57 PM
Hi,
I am trying to sychronize the start of an analog output task, a digital output task and a counter task. I want the counter's start to serve as the master trigger and the analog and digital tasks to sync to its start.
I am assuming I need something like:
analogOutputTask.Triggers.StartTrigger.ConfigureDigitalEdgeTrigger("???", DigitalEdgeStartTriggerEdge.Rising);
digitalOutputTask.Triggers.StartTrigger.ConfigureDigitalEdgeTrigger("???", DigitalEdgeStartTriggerEdge.Rising);
analogOutputTask.Start(); // slave 1
digitalOutputTask.Start(); // slave 2
counterTask.Start();n // master
Where ??? is a string specifying the counter task's start trigger source. However, I cannot seem to find what this string is. Any suggestions?
Thanks!
-Jon
Solved! Go to Solution.
01-25-2011 05:19 PM
Hi Jon,
I believe that the string that you are looking for is going to be something like this:
/Dev1/ci/StartTrigger
Instead of using Dev1, you should use the actual alias name of your device in the Measurement and Automation Explorer.
04-11-2011 08:06 AM
Just, FYI, the solution to this problem as well as some other ones is encapsulated in a short .NET example I created. It is located on the NI website:
http://decibel.ni.com/content/docs/DOC-15500
This project shows how to synchronize all your analog/digital outputs across tasks and boards in terms of start timing and clock synchronization.
-Jon