VeriStand .NET API Reference

LookupTable Class

Represents a lookup table Scale, which maps an array of pre-scaled values to an array of corresponding scaled values.

Namespace: NationalInstruments.VeriStand.SystemDefinitionAPI
Assembly: NationalInstruments.VeriStand.SystemDefinitionAPI (in NationalInstruments.VeriStand.SystemDefinitionAPI.dll) Version: 2013.0.0.0 (2013.0.0.0)
Visual Basic (Declaration)
Public Class LookupTable _
	Inherits Scale
C#
public class LookupTable : Scale
Visual C++
public ref class LookupTable : public Scale

Remarks

NI VeriStand applies linear interpolation to values that fall between the values in the table, so those values are scaled proportionally. For example, suppose you configure the following table scale:
  • Pre-Scaled Values: 0, 5, 10
  • Scaled Values: 0, 10, 20
For input operations, if the device acquires a pre-scaled value of 2, the scaled value that is read is 4. For output operations, if you write a scaled value of 2, the device generates a value of 1.

Values Outside the Lookup Table Range

NI VeriStand clips samples that are outside the maximum and minimum scaled values found in the table. For example, suppose the following lookup table scale is mapped to an input channel that reads a pre-scaled value of 3:

  • Pre-Scaled Values: 0, 1, 2
  • Scaled Values: 0, 4, 10
In the previous example, the scale converts the value to the maximum scaled value in the table, 10. For an output channel that writes a scaled value of 11, the scale converts the value to 2.

Inheritance Hierarchy

System.Object
    NationalInstruments.VeriStand.SystemDefinitionAPI.BaseNode
        NationalInstruments.VeriStand.SystemDefinitionAPI.Section
            NationalInstruments.VeriStand.SystemDefinitionAPI.Scale
                NationalInstruments.VeriStand.SystemDefinitionAPI.LookupTable

See Also

Log in to get a better experience