<< jlenv | Julia engine | jlrunfile >> |
jlrun(code) |
outvars = jlrun(code, outputs) |
outvars = jlrun(code, outputs, jlName, jlValue) |
a string scalar, string array, character vector, character array.
Input arguments name and value
string array: Julia variable names.
One or more Nelson workspace variable names returned as valid Julia types.
jlrun(code) function executes Julia statements present in the code string within the Julia interpreter.
Variables generated by the jlrun function remain persistent, allowing their usage in subsequent jlrun calls.
outvars = jlrun(code, outputs) Julia variables specified in outputs are returned to Nelson.
The values of these variables are captured in outvars.
outvars = jlrun(code, outputs, jlName, jlValue), the code is executed with assigned input and output variable names using Nelson data passed through one or more name-value arguments.
jlrun('a = b * c', 'b', 5, 'c', 10)
r = jlrun('d = a + c', 'd')
jlrun(["a = 3","print(a)"])
[R1, R2] = jlrun("a=b*c",["a","b"], 'b', 5, 'c', 10)
jlrunfile, jlenv, Julia types supported.
Version | Description |
---|---|
1.12.0 | initial version |
Allan CORNET