Example Code

Analog Output Ramp Voltage Pause Trigger

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 demonstrates how to generate an analog output voltage with a Multifunction Card (E-Series, M-Series, X-Series) and have the generation be based on a trigger.

 

Description:

This program is designed to ramp the voltage when a high digital level is received on the PFI0 line of the device. Using an initial DAQmx write to set the initial voltage level to the desired position, the user can then specify the high value as well as the step size of the analog voltage. To use this example for an application make sure to change the I/O Constant on the block diagram for the "Pause.DigLvl.Src". The VI will also display the current Voltage level as the loop is generating.

 

Steps to Implement or Execute Code:

  1. Set the Analog Output Channel you want to use.
  2. Set the initial value, highest value, and set step size.
  3. Run the VI

 

Requirements

LabVIEW 2012 or compatible
NI-DAQmx 15.0 or compatible

 

2017-04-26_14-40-51.jpg

 

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

Aaron W.
National Instruments
CLA, CTA and CPI

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

Comments
Aditya J.
Member
Member
on

Succinct example of using a pause trigger. Exactly what I needed to make a pausable ramp output vi. Thanks!