Additional Information
If you're trying to synchronize two DAQmx tasks, but don't have the necessary internal routes, the following is a possible workaround:
The method described below uses a digital output to trigger an analog input and analog output task. This can be done for any DAQ device which has limited internal routing.
-
Connect a wire between the digital output pin and the two PFI pins on your device
-
On both analog input and analog output task, use a trigger which uses one of the PFI lines as its source. (Separate PFI lines may be needed if PFI sharing is not allowed with the device).
-
Create a digital output task which sets its value to false (low) and then to true (high). This high value will be used as the trigger for the other tasks.
-
Make sure to write the true constant to the digital output task after both the analog input and analog output tasks have started.
Please see the following code as an example on how to implement the steps described above in LabVIEW.
In LabVIEW follow the steps below to navigate to example code for synchronization methods using internal routing.
- Help>>Find Example>>Hardware Input and Output>>DAQmx>>Synchronization>>Analog Input-Synchronization .vi
The same rules that govern physical devices also apply to
simulated devices . It is impossible to route from simulated devices to physical ones.