ICalibration.SetPolynomialCalibration Method
- Updated2023-02-21
- 2 minute(s) read
Sets calibration for a channel using a polynomial scale. You also can use the SetThermocoupleCalibration method to set calibration using a thermocouple scale. A single channel can have only one scale.
Namespace:
NationalInstruments.VeriStand.ClientAPIAssembly: NationalInstruments.VeriStand.ClientAPI (in NationalInstruments.VeriStand.ClientAPI.dll) Version: 2013.0.0.0 (2013.0.0.0)
| Visual Basic (Declaration) |
|---|
Function SetPolynomialCalibration ( _ channelName As String, _ coefficients As Double(), _ offset As Double, _ scale As Double _ ) As Error |
| C# |
|---|
Error SetPolynomialCalibration( string channelName, double[] coefficients, double offset, double scale ) |
| Visual C++ |
|---|
Error^ SetPolynomialCalibration( String^ channelName, array<double>^ coefficients, double offset, double scale ) |
Parameters
- channelName
- Type: System.String
The name of channel on which to set calibration.
- coefficients
- Type:
System.Double
The coefficients of the polynomial scale. You can specify up to four coefficients.y = c[0] + c[1] * x + c[2] * x^2 + c[3] * x^3
- offset
- Type: System.Double
The offset to apply after primary scaling.
- scale
- Type: System.Double
The scale to apply after the primary scaling.