Example Programs

cancel
Showing results for 
Search instead for 
Did you mean: 

Synch AI-AO to an External Sample Clock Generate by Onboard Counter Using LabVIEW with DAQmx

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.


Description

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

  1. Configure the Controls on the front panel to fit your application
    1. Select the counter output and the sample clock frequency
    2. Select the physical channels for the AI and AO tasks.
    3. Select the Waveform parameters for the AO Task.
  2. Select run.

 

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 SnippetMulti-Function-Synch AI-AO to Internal Counter LV 2009 Express VI Snippet.png**This document has been updated to meet the current required format for the NI Code Exchange.**

Comments
Member dtraxler
Member

Does not appear to be anything in the zip file.