Function Step
The Function section contains the following elements.
Insert
Creates a new node and opens the "Edit Node" window where you can edit the new node.
If an existing node is selected when you click on Insert, the new node is added before the selected node.
Note |
---|
It is allowed to add an invalid expression as a placeholder. You can add an expression that does not make sense within the first node used and will make sense later. See Node transferFcn in Demo Project Function Closed-Loop (PID) as example:
|
Delete
Deletes the selected node(s).
Edit
Opens the "Edit Node" window where you can edit the selected node.
Note |
---|
You can also double-click to edit a node |
Validate All
Checks the validity of all nodes.
Symbolic Regression
"Symbolic Regression" window opens where you can define settings for symbolic regression analysis.
The button opens a drop-down where you can create a new symbolic regression or open previous results.If you want to remove previous results out of the list, you have to open the result and select "Delete Result" in the "Symbolic Regression" window. The function node itself is not affected of this operation.
Dependency Graph
Opens theDependency Graph for Function <Name> where you can see the graphical representation of the function and analyze dependencies of nodes. The function is visualized as a data flow graph.
Function Nodes table
This table lists all existing nodes of the function or subfunction selected in the "Functions" list. The New row at the bottom can be used to create a new node.
"Functions" list
This list shows the main function and the subfunctions. You can use the buttons below the list to Add, Edit, or Delete a selected subfunction.
Import Functions
Imports a function from a text file. See also Exporting and Importing Functions.
Export Functions
Exports the main function and all subfunctions to an export text file (*.mocafun). See also Exporting and Importing Functions.
Edit Mode option
If the Edit Mode option is activated, you can change the elements of the function directly in the Function Nodes table. The names of data, parameters and nodes are marked with %.
Note |
---|
Syntax Highlighting with different colors for Node, Input, Parameter, Model or Sub-Function (see Legend). |
See also
Exporting and Importing Functions
Adding the First Node (tutorial)