Enter Values for the Data Points
You can define a function by specifying input and output values in a table of data points.
-
From the Mechanism section of the action bar,
click Function
.
-
Select Data Points
as the function
type to create.
-
In the Dependent, F(x) field, select a type of quantity for
the output value.
The Independent, x physical quantity can only be time.
-
In the Definition section, specify x and F(x) values in each row
of the table. Use the following options to edit the table:
Option Description 
Append RowAdds a new row at the end of the table, with default values, and increments the x value. Use this option to create the first row of the table.

Insert RowAdds a new row after the selected row, and specifies default values. The x value must be higher than the previous value and lower than the next value.

Delete RowDeletes the selected row or rows. 
Move Up RowMoves the selected row or rows up the table. 
Move Down RowMoves the selected row or rows down the table. Tip: To select all the rows, click the check box at the upper-left corner of the table. To select one or more rows, click the check box of the corresponding row or rows in the first column. Notes:- Click Paste
to paste data from the table of a local file into the data
point table. - You can click Import Data
to import
data from a .csv file into the table. For more information, see Import Data from .CSV Files. - To copy the values from the table and reuse them in an
external application or file, click Copy
.
- Click Paste
-
Select an interpolation type.
Option Description Example Natural cubic spline Interpolates the values between two data points using a third-order polynomial (segmented cubic spline). 
Cubic interpolation of the translation along the z-axis through time (0 to 5 seconds).
Linear Interpolates the values between two data points using a first-order polynomial (segmented linear interpolation). 
Linear interpolation of the translation along the z-axis through time (0 to 5 seconds).
The values of the three defined data points are the same, but the interpolation type is different.
Notes:- By default, the extrapolation before the first data point and after the last data point is linear. You cannot modify the extrapolation type.
- Avoid using extrapolation and instead ensure that your data set covers all potential scenarios represented in your model.
-
Expand Scale and Offset, and then specify a value for the scale
and offset of the x and F(x) variables.
By default, the scale values correspond to 1 and the offset values correspond to 0.
-
Click
Show Plot to hide or show the Plot Graph
panel.
The Function Plot panel plots the curve. This lets you view the resulting function before computing the mechanism and generating the 2D Plot
results. For
more information, see Using 2D Plots.Note: The plot curve updates according to the selected function type, input or output physical quantities, or any other function parameter. To update the resulting curve, click outside of the edited field.Tip: Select an area of the plot graph to zoom in on, and click Zoom to Fit
to return to the full view.


