Example Code

Synchronize a DAQmx Digital Generation with a Triggered AWG Generation and a Scope Acquisition

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 shows how to syhncronize a digital generation using DAQmx with an AWG generation and a Scope acquisition.


Description

The AWG generates a waveform after a digital trigger is detected; the waveform has the first 100 samples set to 0. The AWG exports its sample clock and a marker event on two TTL lines in order to be used by the DAQ board for syncronization purposes.

The DAQ board generates a pattern with the first 100 samples set to 1, so it's easy to verify on the graph that the two generated signals are synchronized.

The Scope acquisition is also syncronized with the AWG generation using NI TClk technology.

Requirements

Software

  • LabVIEW 8.6 or compatible
  • NI-SCOPE 3.4.1 or compatible
  • NI Fgen 2.5.2 or compatible

Hardware

  • NI PXI 5421
  • NI PXI 5122
  • NI PXI 6534

Steps to Implement or Execute Code

1. Download the Attached VI.

2. Open it with LabVIEW 8.6 or later

3. Choose the desired AWG, Scope, and DAQmx cards

4. Run the VI

Additional Information or References

AWG FP.JPG

AWG BD.JPG

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

Andrea N.
Principal Applications Engineer - Semiconductor EMEA
National Instruments Italy
Certified LabVIEW Architect - Certified TestStand Architect

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

Contributors