Example Code

Synchronize Two M-Series Devices for Analog Acquisition and Acquire Frequency Measurements Using LabVIEW with DAQmx

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 VI shows how to synchronize two PCI M-Series devices connected with a RTSI cable for analog acquisition while acquiring low (1hz to 1 Mhz) frequency measurements for each analog signal.

 

Description
This example demonstrates how to acquire a continuous amount of data (Waveform) using the DAQ device's internal clock.  It also shows how to synchronize two devices for different device families (E Series, M Series, and DSA), to simultaneously acquire the data.


Requirements

Software

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

Hardware

  •  M-Series DAQ


Steps to Implement or Execute Code

  1. Create an analog input voltage channel for both the Master and Slave devices.
  2. Set timing parameters.
  3. Run the VI

Additional Information or References

NI Snippet

00.png

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

Regards,

Mike S
NI AE

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

Comments
Todd S.
NI Employee (retired)
on

Thanks for posting.  Could you please rename your attachment to include the LabVIEW version? "_lvXX.vi" would be fine.

Todd S.
LabVIEW Community Manager
National Instruments