Example Code

Synchronizing and Pausing a Continuous Acquisition of Multiple Analog Input DAQ Devices

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 synchronize, pause, and continuously acquire data from multiple DAQ device’s by sharing a reference clock, start  trigger, and pause trigger.

Description

This example is a modified version of the Multi-Device Synch-Analog Input-Cont Acquisition.vi from the Synchronize Continuous Acquisition of Multiple Analog Input Devices Community Example. Through the manual synchronization method defined in KnowladgeBase 5QJHRL2P , this example shows how to manually route a reference clock and trigger to synchronize multiple devices, when a multi-device task is not supported. This modified example was created as a solution to error -201019 at the DAQmx Start Task.vi, which occurs because the DAQmx Pause Trigger property is not supported by a multi-device task.

Requirements

Software

  • LabVIEW 2012 or compatible
  • DAQmx 9.5.5 or compatible

Hardware

  • E Series, M Series, S Series, X Series, or SC Express device

Steps to Implement or Execute Code

  1. Download and open the Multi-Device Synch-Pause Trigger-Analog Input-Cont Acquisition.vi.
  2. Set the channel parameters for the master device.
  3. Set the channel parameters for each slave device.
  4. Set the timing parameters that apply for all the DAQ devices.
  5. Set the pause trigger terminals.
  6. Set the synchronization type, which will vary based on the type of DAQ device for your application.

Additional Information or References

VI Snippet

Multi-dev-sync-pause-trig-snippet.png

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

Tunde S.
Applications Engineer
National Instruments

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

Contributors