Example Code

Functional Global Variable to Scale Output Using LabVIEW

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
The example shows how to use a functional global variable to change an output based on some input (in this case a Digital Input).


Description
You can run the VI to get the calibration (scaling) coefficients of your specified device using DAQmx property nodes.


Requirements

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


Steps to Implement or Execute Code

1.Write datum in the Voltage Setpoint control, Voltage Endpoint control and Cycles control.

2.Select the channel of Digital Channel to Read control and External Clock Source control.

3.Run the VI 

 

Additional Information or References
NI Snippet

1.png

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

ColeR
Field Engineer

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