Hello,
Currently your code executes like this - first the AI and AO starts at the same time, and after that only the start of initialization of CO starts, which is not what we desire (to all AO, AI and CO start at the same type). The solution is to make same technique with CO as the technique you obtain in example Multi-Function-Synch AI-AO.vi:
- set the source of CO trigger to ai/StartTrigger -with this we achieve starting AI and DO tasks when AI triggers (when AI task starts).
- connect error wires from Start block of CO task, Start block of AO task and from Get Terminal Name with Device Prefix.vi of AI task to Merge Errors, and end from Merge Errors function to Start block of AI acquisition. This step will dataflow force CO and AO tasks to start waiting for AI trigger before AI - and as we know AI trigger will happen when the AI tasks starts; that is why we need to start other tasks (CO, AI) before AI task.
Now all the tasks should be synchronized.
If there will be anymore questions or errors please fell free to ask.
Regards,
Gregor Cerne