NI-DAQmx VI and Function Reference

Content Type
Programming Language
Current manual

DAQmx Compute Reverse Polynomial Coefficients (VI)

DAQmx Compute Reverse Polynomial Coefficients (VI)

Owning Palette: DAQmx Scale Setup VIs and Functions
Installed With: NI-DAQmx

Computes a set of coefficients for a polynomial that approximates the inverse of the polynomial with the coefficients you specify with the coefficients input. This VI generates a table of x versus y values over the range of x. This VI then finds a polynomial fit, using the least squares method to compute a polynomial that computes x when given a value for y.

DAQmx Compute Reverse Polynomial Coefficients

c1ddbl.gif

coefficients is the array of coefficients for the polynomial that computes y given a value of x. 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 9x^3.

cdbl.gif

maximum valid value of x is the maximum value of x for which you use the polynomial. This is the largest value of x for which the VI generates a y value in the table.

cdbl.gif

minimum valid value of x is the minimum value of x for which you use the polynomial. This is the smallest value of x for which the VI generates a y value in the table.

ci32.gif

number of points to compute within x range is the number of points in the table of x versus y values. The VI spaces the values evenly between minimum valid value of x and maximum valid value of x.

cerrcodeclst.gif

error in describes error conditions that occur before this VI or function runs. The default is no error. If an error occurred before this VI or function runs, the VI or function passes the error in value to error out. If an error occurs while this VI or function runs, the VI or function runs normally and sets its own error status in error out. Use the Simple Error Handler or General Error Handler VIs to display the description of the error code. Use error in and error out to check errors and to specify execution order by wiring error out from one node to error in of the next node.

cbool.gif

status is TRUE (X) if an error occurred before this VI or function ran or FALSE (checkmark) to indicate a warning or that no error occurred before this VI or function ran. The default is FALSE.

ci32.gif

code is the error or warning code. The default is 0. If status is TRUE, code is a negative error code. If status is FALSE, code is 0 or a warning code.

cstr.gif

source identifies where an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.

ci32.gif

reverse polynomial order is the order of the reverse polynomial to compute. For example, an input of 3 indicates a 3rd order polynomial. A value of -1 indicates a reverse polynomial of the same order as the forward polynomial.

i1ddbl.gif

reverse coefficients is the array of coefficients for the reverse 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 9y^3.

ierrcodeclst.gif

error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, error out describes the error status that this VI or function produces. Right-click the error out indicator on the front panel and select Explain Error from the shortcut menu for more information about the error.

ibool.gif

status is TRUE (X) if an error occurred or FALSE (checkmark) to indicate a warning or that no error occurred.

ii32.gif

code is the error or warning code. If status is TRUE, code is a nonzero error code. If status is FALSE, code is 0 or a warning code.

istr.gif

source identifies where and why an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.

Was this information helpful?