Example Code

M Series: Multi Device Synchronization Using LabVIEW

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 program illustrates how to cleanly configure more than two M Series data acquisition devices to acquire a continuous number of samples.


Description
The code implements one master device and a variable number of slave devices. Thus, it is easily expandable for situations where three or more DAQ devices are required. In addition, a shared timebase and start trigger are used to synchronize the devices. Thus, all devices are synchronized to acquired to within one period of the sampling rate on all channels.


Requirements

  • LabVIEW 2012 (or compatible)
  • NI DAQmx 12.0 (or compatible)


Steps to Implement or Execute Code

 

  1. Select the physical channel to correspond to where your signal is input on the DAQ device.
  2. Enter the minimum and maximum voltage range.

Note:  For better accuracy try to match the input range to the expected voltage level of the measured signal.

  1. Set the number of samples to acquire per channel.
  2. Set the rate of the acquisition

 

Additional Information or References
VI Snippet

00.png

**This document has been updated to meet the current required format for the NI Code Exchange.**

Chris Van Horn
Applications Engineer

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