<< Click to Display Table of Contents >> Navigation: MechDesigner Reference & User Interface > DialogBoxes > Dialog: FunctionBlock: PolynomialFit 
Note: Save your model before you use the PolynomialFit dialogbox controls.
You must connect a wire to its inputconnector.
The Polynomial Fit FB finds a concatenated series of Polynomials (5th order) that are an approximation to the data that you connect to its inputconnector. After you calculate (fit) the Polynomials, you can: •Transfer the Polynomials directly to MotionDesigner as a new Motion •Connect the output from the PolynomialFit FB as the input to a different FB. •Save the motionvalues that you calculate as a textfile. •Save the values for position, velocity, and acceleration at the beginning and end of each polynomial segment as a CSV file. •Save the values for position, velocity, and acceleration at the beginning and end of each polynomial segment in the format required for a SchneiderElectric® EPAS4 servocontroller. 
Edit the PolynomialFit FB:

The PolynomialFit dialogbox is now open.
The PolynomialFit dialogbox:

Acquire and Save Results toolbar 

The toolbar buttons are:

Number of Fitted Polynomials in Fit (ReadOnly) The number of Polynomials in the numerical solution. See also: Maximum Polynomial Count. in the Settings for Polynomial Fitting Algorithms. RMS Position Error, RMS Velocity Error, RMS Acceleration Error (ReadOnly). They give the RMS (Root, Mean, Square) error values of the Position, Velocity and Acceleration between the 'bestpolynomialfit' and the 'inputmotiondata', as percentage of the maximum range of each motionderivative. 
Parameters to enter before you click Fit Polynomials to Data (button in the Acquire and Save toolbar, above)

The toolbar buttons are:

Graph plot color scheme for •original, or input, data •fitted data calculated from the fitted polynomials •each motionderivative •Cursor  you can click ON a graph of each motionderivative to show a cursor. The XY datavalues of the active cursor is above the graphs. 