From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Example Code

DAQmx Acquire with Custom Scale

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 add a custom scale to a LabVIEW VI.

 

Description

When adding a custom scale to a LabVIEW VI from MAX there are a few common problems. If you getthe following error,this is the way to fix it.

Error -200447 occurred at an unidentified location

Possible reason(s): Measurements: Units for the channel must be set to From Custom Scale when a custom scale is used with a channel. Notice the input on the create channel VI.

 

Requirements

Software

  • LabVIEW 2012 or compatible
  • NI-DAQmx 9.5.5 or compatible

Hardware

  • NI Multifunction DAQ Device

 

Steps to Implement or Execute Code

  1. Configure the parameter for the right channel and device
  2. Connect your hardware appropriately
  3. Run the VI

 

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

 

 

 

 

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

Comments
StephenB
Active Participant
Active Participant
on

the daqmx create channel actually has a terminal named 'units' from there you create a constant that says 'from custom scale' and you dont need to use the property node at all. this EPD does this: http://zone.ni.com/devzone/cda/epd/p/id/6062

Stephen B