Please enable JavaScript to view this site.

Knowledge Base

Run a script by typing its name. The file must be in the current path. The path always searches the current directory first. A script file is not passed variables, and does not return variables. All scripts have access to all of the variables defined in the current workspace.

 

It's best to avoid using the names of Lumerical script functions (i.e. plot) for the names of your script files. If a script file has the same name as a function, the script will be run (not the function). This allows you to effectively re-define the behavior of a function, but it can cause confusion when done unintentionally.

 

Supported Product: FDTD, MODE, DEVICE, INTERCONNECT

 

Syntax

Description

filename;

Run the script file filename.lsf, if it exists in the current path.

A script does not have a return type.

 

Examples

See Creating your own script commands.

 

See Also

System level, getpath, addpath, which, feval, scriptautorun

Copyright Lumerical Inc. | Privacy | Site Map