Example Code

Import Custom Scale Data From TDMS File Into MAX

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.

    Software

  • LabVIEW

    Driver

  • NI DAQmx

Code and Documents

Attachment

Overview

This example shows how to Import a Custom Scale Data From TDMS File and transfer into MAX

 

Description

This code pulls custom scale data stored in a TDMS file, packages it, and saves it as a scale in Measurement and Automation Explorer.  The scales are stored in the TDMS file as a group.  The parameters, like slope and intercept for a linear scale, are stored as the data for that group.  The name, scale type, units and description are stored as properties of that group.  This program will not overwrite or delete any existing scales in MAX.

 

Requirements
LabVIEW 2012 (or Compatible)

 

Steps to Implement or Execute Code

  1. Run VI

  2. Open MAX and look at Scales

Main VI Snippet:

Custom Scales from TDMS File to MAX LV_2012_NI_Verified.png

 

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

 

Chris Bakker
SET Americas
CEO

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