VeriStand .NET API Reference

ICalibration.SetPolynomialCalibration Method

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.ClientAPI
Assembly: 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.

Return Value

Returns an error if the calibration component is not available or if the channel is not scalable. If no error occurs, the Code property of the Error object is 0.

See Also

Log in to get a better experience