Example Code

Synchronized Analog Output Loopback to Analog Input 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

Download All

Overview

This VI outputs a waveform on an analog output channel and bring the signal back into an analog input channel.

 
Description

Please note that this requires a physical wire connection between the AO and AI channels, and the user must specify the correct device in the VI.  Also, you must specify the sample clock source of the analog input to be the AO sample clock form the same device, along with having the same rate and number of samples per channel.


Requirements

Software

  • LabVIEW 2012 (or compatible)

Hardware

  • DAQ device with AO and AI channels.


Steps to Implement or Execute Code

  1. Connect AO and AI channels with a physical wire.
  2. Run the VI, see the synchronized signal waveform in the front panel.

 

Additional Information or References
VI Snippet

005.png

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

Adam
Academic Product Manager
National Intruments

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

Comments
David S.
NI Employee (retired)
on
Handy example, but the error handling needs to be reconsidered.
David Staab, CLA
Staff Systems Engineer
National Instruments
enderWiggin10
NI Employee (retired)
on

Thanks David.  I have updated accordingly.

Adam
Academic Product Manager
National Intruments
enderWiggin10
NI Employee (retired)
on
Thanks David.  I have updated accordingly.
Adam
Academic Product Manager
National Intruments
enderWiggin10
NI Employee (retired)
on
Thanks David.  I have updated accordingly.
Adam
Academic Product Manager
National Intruments
enderWiggin10
NI Employee (retired)
on
Thanks David.  I have updated accordingly.
Adam
Academic Product Manager
National Intruments