DAQmx Compute Reverse Polynomial Coefficients
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.
Place on the block diagram. | Find on the Functions palette. |
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. | |||||||
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. | |||||||
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. | |||||||
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. | |||||||
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.
|
|||||||
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. | |||||||
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. | |||||||
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.
|