Overview
The provided example VI shows how you can perform scaling on data using a table of real vs raw values. This is available in LabVIEW with the DAQmx palette but this is usable on an RT target.
Description
Using this VI you should be able to scale your values using a table which allows for non-linear scaling relationships with data.
Requirements
- LabVIEW 2012 (or compatible)
Steps to Implement or Execute Code
- Download the VI
- Insert the VI into your code
- Wire the scale table (defining the scaling), input sign and accuracy into the VI.
- The output signal will be scaled as per your table.
Note: The accuracy defines how much the input signal/scale table needs to be interpolated to allow for array manipulation. The higher the more accurate however there is an exponential increase in CPU requirements.
Additional Information or References
VI Block Diagram
**This document has been updated to meet the current required format for the NI Code Exchange.**