Julia Function

 

Dialog Box

Figure 1  JlFunction dialog box

 

Parameter

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

The original form of using function is int Function Name(y, u). Function Name can be changed in the original form.

You can use global variables, the PV list, working values by Pre-Event.

The displayed code of Code Editor is saved as block name.jl of the folder which has a CoLink model when performing a simulation.