![]() | Download Help (Windows Only) |
Encapsulates a custom scale that maps an array of prescaled values to an array of corresponding scaled values, with all other values scaled proportionally.
Namespace: NationalInstruments.DAQmx
Assembly: NationalInstruments.DAQmx (in NationalInstruments.DAQmx.dll) Version: 17.1.40.99
![]() | Note:Example applications are located in the directory
or in the Start menu at National Instruments |
The following example explains how to update the PreScaledValues property that returns an array:
Dim preScaledValues As Double() = New Double() {0.11, 0.12, 0.13} Dim scaledValues As Double() = New Double() {1.1, 1.2, 1.3} Dim tablescale As New TableScale("DAQmxTableScale", preScaledValues, scaledValues) ' To update the value at specific index in tablescale.PreScaledValues ' change the source array and assign it back to the property. preScaledValues(0) = 0.1 tablescale.PreScaledValues = preScaledValues
double[] preScaledValues = new double[] { .11, .12, .13 }; double[] scaledValues = new double[] { 1.1, 1.2, 1.3 }; TableScale tablescale = new TableScale("DAQmxTableScale", preScaledValues, scaledValues); // To update the value at specific index in tablescale.PreScaledValues // change the source array and assign it back to the property. preScaledValues[0] = 0.1; tablescale.PreScaledValues = preScaledValues;
The following example explains how to update the ScaledValues property that returns an array:
Dim preScaledValues As Double() = New Double() {0.11, 0.12, 0.13} Dim scaledValues As Double() = New Double() {1.1, 1.2, 1.3} Dim tablescale As New TableScale("DAQmxTableScale", preScaledValues, scaledValues) ' To update the value at specific index in tablescale.ScaledValues ' change the source array and assign it back to the property. scaledValues(0) = 1.12 tablescale.ScaledValues = scaledValues
double[] preScaledValues = new double[] { .11, .12, .13 }; double[] scaledValues = new double[] { 1.1, 1.2, 1.3 }; TableScale tablescale = new TableScale("DAQmxTableScale", preScaledValues, scaledValues); // To update the value at specific index in tablescale.ScaledValues // change the source array and assign it back to the property. scaledValues[0] = 1.12; tablescale.ScaledValues = scaledValues;
All members of this type are safe for multithreaded operations.
Helpful
Not Helpful