To download NI software, including the products shown below, visit ni.com/downloads.
Overview
This example demonstrates how to increase the performance of the loop controlling the reading of a continuous DAQmx measurement.
Description
M Series DAQ devices may use an external signal for both Sample and Convert clock sources (Difference Between Sample and Convert Clock). However, one may also configure the two clock signals to come from the same clock source, as shown below.
To configure the M Series DAQ devices this way, one must simply select to use the same PFI line for the Convert Clock and Sample Clock (also see attached code):
When configured to use the Convert Clock and Sample clock based off of a single signal, The DAQ device will sample one channel in the scan list on each rising edge of the clock source. You may use this configuration in single-channel applications as well. One particularly useful consequence of this is the ability to synchronize your measurement with an external clock without the need for a reference clock.
Requirements
Software
Hardware
Steps to Implement or Execute Code
Additional Information or References
This is an advanced configuration setting specific to certain applications. For more basic examples, please refer to the shipping examples in the Example Finder (Help >> Find Examples).
**This document has been updated to meet the current required format for the NI Code Exchange.**
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.