Overview This Example Program synchronizes an analog output and an analog input task to a external sample clock generated by a counter on the same board.
This Example Program synchronizes an analog output and an analog input task to a external sample clock generated by a counter on the same board. This is done using a counter output frequency task. The AI and AO tasks reference the output terminal of the counter output task and therefore sample/update at the rate that the counter task is going. Requirements
LabVIEW 2012 (or compatible)
DAQmx 9.5.5 (or compatible)
Steps to Implement or Execute Code
Configure the Controls on the front panel to fit your application
Select the counter output and the sample clock frequency
Select the physical channels for the AI and AO tasks.
Select the Waveform parameters for the AO Task.
Additional Information or References
This Program could easily be scaled for multiple AI and Multiple AO channels if needed. a simple modification of the physical channels and the polymorphic DAQmx Write or Read VI would be in order.
VI Snippet**This document has been updated to meet the current required format for the NI Code Exchange.**