DAQmx Create Scale (Table) VI
- Updated2025-07-28
- 4 minute(s) read
Creates a custom scale that maps an array of pre-scaled values to an array of corresponding scaled values. NI-DAQmx applies linear interpolation to values that fall between the values in the table. Read operations clip scaled samples that are outside the maximum and minimum scaled values found in the table. Write operations generate errors for samples that are outside the minimum and maximum scaled values found in the table.

Inputs/Outputs
name
—
name identifies the custom scale for later use, such as with the DAQmx Create Virtual Channel VI
scaled values
—
scaled values is the array of scaled values that map to the values in pre-scaled values.
pre-scaled values
—
pre-scaled values is the array of pre-scaled values that map to the values in scaled values.
error in
—
error in describes error conditions that occur before this VI or function runs. The default is no error. If an error occurred before this VI or function runs, the VI or function passes the error in value to error out. If an error occurs while this VI or function runs, the VI or function runs normally and sets its own error status in error out. Use the Simple Error Handler or General Error Handler VIs to display the description of the error code. Use error in and error out to check errors and to specify execution order by wiring error out from one node to error in of the next node.
pre-scaled units
—
pre-scaled units is the units of the values to scale.
scaled units
—
scaled units is the units to use for the scaled value. You can use an arbitrary string. LabVIEW uses the units to label a graph or chart.
scale out
—
scale out is a reference to the custom scale this VI creates.
error out
—
error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, error out describes the error status that this VI or function produces. Right-click the error out indicator on the front panel and select Explain Error from the shortcut menu for more information about the error. |
name
—
scaled values
—
error in
—
pre-scaled units
—
scale out
—
error out
—