Dialog: Function-Block: Polynomial-Fit

<< Click to Display Table of Contents >>

Navigation:  MechDesigner Reference & User Interface > Dialog-Boxes >

Dialog: Function-Block: Polynomial-Fit

Polynomial-Fit FB

Note: Save your model before you use the Polynomial-Fit dialog-box controls.

You must connect a wire to its input-connector.

About Polynomial FB


See: Add Polynomial Fit Function-Block

The Polynomial Fit FB finds a concatenated series of Polynomials (5th order) that are an approximation to the data that you connect to its input-connector.

After you calculate (fit) the Polynomials, you can:

Transfer the Polynomials directly to MotionDesigner as a new Motion

Connect the output from the Polynomial-Fit FB as the input to a different FB.

Save the motion-values that you calculate as a text-file.

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 Schneider-Electric® EPAS4 servo-controller.

How to open the Polynomial-Fit FB dialog-box


Edit the Polynomial-Fit FB:

1.Double-click the Polynomial-Fit FB in the graphic-area

- or -

1.See How to Open a Dialog-Box  

The Polynomial-Fit dialog-box is now open.

Polynomial-Fit dialog-box


The Polynomial-Fit dialog-box:

Red-14-1 Acquire and Save Toolbar - acquire and save results.

Red-14-2 Analysis of Results - RMS errors and the number of Polynomials.

Red-14-3 Settings for Polynomial Fitting Algorithms - tolerances, limits, and range for polynomial fitting.

Red-14-4 Graph Plots: for the input-data and the calculated data from the Polynomials.

Red-14-5 Graph toolbar - view and save the graph-data in different ways.

Red-14-6 Graph Legend. - graph plot color scheme for original data and fitted Polynomials, for each motion-derivative

1rAcquire and Save toolbar

Acquire and Save Results toolbar

Acquire and Save Results toolbar

The toolbar buttons are:

Red-14-1 Acquire (Capture, Get One Cycle) :

Click this button to acquire data at the input-connector for one machine-cycle - this is the Raw-Data.

Red-14-2 Fit Polynomials to Data :

Click to Fit Polynomials to the Raw-Data. - see Settings for Polynomial Fitting Algorithms.

Red-14-3 Stop Algorithms : (see also Auto-Run)

The algorithms will usually fit polynomials within a few seconds. If you do not see the results quickly, then click this button to stop the algorithms.

Red-14-4 Save Coefficients :

Click to save the results to a CSV file, or a EPAS4 file that is suitable for a Schneider Electric servo-controller.

Red-14-5 Auto-Run :

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.

Red-14-6 Send Polynomials to MotionDesigner :

Add a new Motion name-tab, and send the Polynomials as a new motion.

2r2rAnalysis of Results


Number of Fitted Polynomials in Fit (Read-Only)

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 (Read-Only).

They give the RMS (Root, Mean, Square) error values of the Position, Velocity and Acceleration between the 'best-polynomial-fit' and the 'input-motion-data', as percentage of the maximum range of each motion-derivative.

3rSettings for Polynomial Fitting Algorithms


Parameters to enter before you click Fit Polynomials to Data (button Red-14-2 in the Acquire and Save toolbar, above)

Red-14-1 Position, Velocity, Acceleration buttons.

Click each button to identify the motion-derivatives to which you want to Fit Polynomials.

Red-14-2 Position, Velocity, Acceleration Tolerance %

Enter the tolerance, as %, for each motion-derivative, within which the Fitted Polynomials should represent the data at the input-connector.

Red-14-3 Machine Angle Range

Optionally, reduce the range for which you want to calculate Polynomials

Red-14-4 Number of Points

The number of data points that are calculated from the Polynomials, to plot the graphs.

Red-14-5 Point in Tolerance Sample of Points

The number of points that the algorithm uses to fit each polynomial to the data at the input-connector.

Red-14-6 Maximum number of Polynomials.

Upper limit of the number of Fitted-Polynomials in the  data.

Red-14-7 Minimum Segment Width.

Lower Limit for the width of a Segment

Red-14-8 Split Segment at Zero Acceleration / Velocity check-boxes

Force the solutions to split the motion (add a new Segment) at which the Acceleration / Velocity crosses zero - positive to negative and vice versa.

5rGraph toolbar


The toolbar buttons are:

Red-14-1 Print Graphs :  Print the graphs immediately to the default printer

Red-14-2 Save Graph Data: Save the Data to a text file.

Red-14-3 Zoom Out and Zoom In to the Graph Details

Red-14-4 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 servo-controller.

Red-14-5 Zoom Extents

Red-14-6 Display Graphs as: Toggle between Plot over each other and Plot Stacked on-top of each other

Red-14-7 Show or Hide Graph Legend.

6rGraph Legend


Graph plot color scheme for

original, or input, data

fitted data calculated from the fitted polynomials

each motion-derivative

Cursor - you can click ON a graph of each motion-derivative to show a cursor.

The X-Y data-values of the active cursor is above the graphs.