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.
- Optional:
Modify the default name of the element.
Tip: Click outside the field to update the name of the element in the tree. -
From Create in, select an option:
Option Description
MechanismCreates the function in the current mechanism. In the tree, the function appears under the Functions
node of the Model
.
Analysis CaseCreates the function in the current analysis case. In the tree, the function appears under the Functions
node of the Scenario
.Tip: To compute function results in different analysis cases, create the functions in the current mechanism. -
In the Physical Quantities section, select a type of
quantity for each function value:
- From Independent, x, select a type of quantity for the input value.
- From Dependent, F(x), select a type of quantity for the output value.
-
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 multiple rows, press Ctrl or Shift. Notes:- You can use knowledge formulas to define the function
parameters. To do so, right-click a parameter field and select
Edit formula. For more information, see Using Knowledge Parameters and Formulas. - You can copy data from a table saved locally and press Ctrl + V to paste it in 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 change the units of the physical quantities displayed in the table, right-click a cell and select Change Display Unit. By default, the units correspond to the units specified in Me > Preferences.
- To copy the values from the table and reuse them in an external application or file, click the upper left of the table to highlight all the cells, and press Ctrl + C.
- To update the resulting curve in the Plot Graph panel, click outside the edited cell or press Tab.
- You can use knowledge formulas to define the function
parameters. To do so, right-click a parameter field and select
-
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.
Tip: You can use knowledge formulas to define the scale and offset parameters. To do so, right-click a parameter field and select
Edit formula. For more information, see Using Knowledge Parameters and Formulas. -
Click
Show Plot to hide or show the Plot Graph
panel.
The Plot Graph 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 or press Tab.Tip: Select an area of the plot graph to zoom in on, and click Zoom to Fit
to return to the full view.


