NI-DAQmx .NET Framework 4.5 API Reference

Table of Contents

PolynomialScale Constructor (String, PolynomialDirection, Double[], Double, Double)

  • Updated2023-02-21
  • 2 minute(s) read
PolynomialScale Constructor (String, PolynomialDirection, Double[], Double, Double)
Creates a new instance of the PolynomialScale class with the specified forward or reverse coefficients and automatically computes the other set of coefficients with the same order as the provided coefficients, using 1000 points in the specified range.

Namespace:  NationalInstruments.DAQmx
Assembly:  NationalInstruments.DAQmx (in NationalInstruments.DAQmx.dll) Version: 20.7.45.49302

Syntax

public PolynomialScale(
	string name,
	PolynomialDirection direction,
	double[] coefficients,
	double rangeMinimum,
	double rangeMaximum
)
Public Sub New ( 
	name As String,
	direction As PolynomialDirection,
	coefficients As Double(),
	rangeMinimum As Double,
	rangeMaximum As Double
)

Parameters

name
Type: SystemString
The name of the custom scale for later use, such as when you create a virtual channel.
direction
Type: NationalInstruments.DAQmxPolynomialDirection
The conversion direction of the specified polynomial. The opposite polynomial is computed by the PolynomialScale.
coefficients
Type: SystemDouble
The array of coefficients of a polynomial. Each element of the array corresponds to a term of the equation. For example, if index three of the array is 9, the fourth term of the equation is 9x3. This polynomial is used as either the forward or reverse polynomial depending on the direction specified.
rangeMinimum
Type: SystemDouble
The minimum of the range over which the polynomial specified is valid or of interest.
rangeMaximum
Type: SystemDouble
The maximum of the range over which the polynomial specified is valid or of interest.

Exceptions

ExceptionCondition
DaqExceptionThe NI-DAQmx driver returned an error.

See Also

Log in to get a better experience