<< Click to Display Table of Contents >> Navigation: MechDesigner Reference & User Interface > DialogBoxes > Dialog: FunctionBlock: PolynomialFit 
A Polynomial Fit FB fits a series of Polynomials (5th order) to data at its inputconnector. You can: •Transfer the Polynomials directly to MotionDesigner as a new Motion. •Save the motionvalues at its outputconnector as a textfile. •Save the motionderivatives at the beginning and end of each Segment as a CSV file •Save the motionderivatives at the beginning and end of each segment in the format required for a SchneiderElectric® EPAS4 servocontroller.

STEP 1: Connect a wire to the inputconnector of the PolynomialFit FB from the outputconnector of a different FB. STEP 2: Open the PolynomialFit dialogbox: (See 'How to open a dialogbox') 
The PolynomialFit dialogbox: Toolbar  acquire and save results. Result Analysis  RMS errors and the number of Polynomials. Settings  tolerances, limits, and range for polynomial fitting. Graph Plots: for the inputdata and the calculated data from the Polynomials. Toolbar  view and save the graphdata in different ways. Graph Legend.

Parameters to enter before you click Fit Polynomials to Data (button in the Polynomial Fit toolbar, below) Position, Velocity, Acceleration buttons. Click each button to define to which motionderivatives you want to fit polynomials. Position, Velocity, Acceleration Tolerance % Enter the tolerance, as %, for each motionderivative, within which the Polynomials should represent the data at the inputconnector. Machine Angle Range Reduce the range for which you want to calculate Polynomials  Where is the StartAngle? Number of Points The number of data points that are calculated from the Polynomials, to plot the graphs. Point in Tolerance Sample of Points The number of points that the algorithm uses to find each polynomial to the data at the inputconnector. Maximum number of Polynomials. Limits the number of Polynomials you want to fit to the data.. 
Acquire and Save Results toolbar 
The toolbar buttons are: Acquire (Capture, Get One Cycle) button : Click this button to acquire data at the inputconnector for one machinecycle  this is the RawData. Fit Polynomials to Data button: Click each time you want to Fit Polynomials to the RawData. Stop Algorithms (see also AutoRun) the algorithms will usually fit polynomials withing a few seconds. If you do not see the results, then click this button to stop the algorithms. Save Coefficients : Click to save the results to a CSV file, or a EPAS4 file that is suitable for a Schneider Electric servocontroller. AutoRun: Immediately allow the algorithms to find polynomials fit the data to the accuracy as specified, and with less or equal to the maximum number of polynomials. Send Polynomials to MotionDesigner : Add a new Motion nametab, and send the Polynomials as a new motion. 
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. Number of Fitted Polynomials in Fit The number of Polynomials in the numerical solution. See also: Maximum Polynomial Count. in the Settings for Polynomial Fitting Algorithms. 
The toolbar buttons are: Print Graphs : Print the graphs immediately to the default printer Save Graph Data: Save the Data to a text file. each time you want to Fit Polynomials to the RawData. Zoom Out and Zoom In to the Graph Details Pan Left and Pan Right : Click to save the results to a CSV file, or a EPAS4 file that is suitable for a Schneider Electric servocontroller. Zoom Extents Display Graphs as: Toggle between Plot Above each other and Plot Stacked ontop of each other Show or Hide Graph Legend. XY Data at active cursor. Click on one of the three graphs, to activate a cursor. Then move yo 