jlrunfile
Run Julia file from Nelson.
Syntax
- jlrunfile(filename)
- jlrunfile(filename input)
- outvars = jlrunfile(filename, outputs)
- outvars = jlrunfile(filename, outputs, jlName, jlValue, ...)
Input argument
- filename - a string scalar, character vector: filename .jl to run.
- "filename 'input'" - a string scalar, character vector: filename .jl to run with input arguments.
- jlName, jlValue - Input arguments name and value
- outputs - string array: Julia variable names.
Output argument
- outvars - One or more Nelson workspace variable names returned as valid Julia types.
Description
jlrunfile(filenam) function executes Julia file.
As the jlrun function, variables generated in the Julia workspace through the jlrunfile function do persist.
The code outvars = jlrunfile(file, outputs, jlName1, jlValue2, ..., jlNameN, jlValueN) executes the code with one or more name-value pair arguments.
Examples
jlrunfile_example_1.jl
content = "hello Nelson"
display(content)
jlrunfile from Nelson
jlrunfile('jlrunfile_example_1.jl')
See also
jlrun, jlenv, Julia types supported.
History
Version | Description |
---|---|
1.12.0 | initial version |
Author
Allan CORNET