Example Code

M-Series Analog Output Frequency Sweep

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:

Demonstrates on generating output frequency sweep from a DAQ device and acquire the generated signal from another DAQ device.
This frequency sweep allows user to use the data to form a Bode plot.

Description:

This VI implemented the Producer-Consumer Design Pattern whereby the Producer Loop programs the DAQ devices to generate and acquire the data followed by sending the acquired data to the Consumer Loop to be logged into a TDMS file.

 

Steps to Implement::
1. Configure the the controls on the front panel for the right channel and devices.
2. Connect the hardware appropriately.
3. Run the VI.

 

Requirement:
LabVIEW 2012 or compatible.
NI-DAQmx 15.5.1 or compatible.

2017-04-20_12-45-29.jpg

 

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

 


Jim St
National Instruments
RF Product Support Engineer

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