20.6.10.3. Julia Function
Dialog Box
Parameter(s) |
Description |
Port Type |
Selects the port type |
Number of inputs |
Enters the number of inputting data |
Number of outputs |
Enters the number of outputting data |
Number of input ports |
Enters the number of inputting port |
Number of output ports |
Enters the number of outputting port |
Function Name |
Defines the name of using function in the Julia function block |
Code Editor |
Enters a function code for the Julia function block |
Test |
Performs the inputted code of Code Editor on trial. The result of test is displayed by Output. |
Export |
Saves a file as inputted code in Code Editor |
Import |
Displays the content in Code Editor after selecting a code or a Julia code file. |
Output |
Displays the result of test or error messages. |
Note
20.6.10.3.1. Example
You can test the Jl Function block with the CoLink model shown in the below figures.
20.6.10.4. Python Function
Dialog Box
Parameter(s) |
Description |
Port Type |
Selects the port type |
Number of inputs |
Enters the number of inputting data |
Number of outputs |
Enters the number of outputting data |
Number of input ports |
Enters the number of inputting port |
Number of output ports |
Enters the number of outputting port |
Function Name |
Defines the name of using function in the Python function block |
Code Editor |
Enters a function code for the Python function block |
Test |
Performs the inputted code of Code Editor on trial. The result of test is displayed by Output. |
Export |
Saves a file as inputted code in Code Editor |
Import |
Displays the content in Code Editor after selecting a code or a Julia code file. |
Output |
Displays the result of test or error messages. |
Note
20.6.10.4.1. Example
You can test the PythonFunction block with the CoLink model shown in the below figures.