Example Code

Single Line External Sample and Convert Clock on an M Series DAQ

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Hardware

  • Data Acquisition (DAQ)

    Software

  • LabVIEW

    Driver

  • NI DAQmx

Code and Documents

Attachment

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):

Single_Line_Convert.PNG

 

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

  • LabVIEW 2012 or compatible
  • NI-DAQmx 9.5.5 or compatible

Hardware

  • NI Multifunction DAQ Device

 

Steps to Implement or Execute Code

  1. Configure the parameter for the right channel and device
  2. Connect your hardware appropriately
  3. Run the VI

 

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.**

 

 

 

 

 

John Passiak

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Tariff Impact Update Learn more