Please enable JavaScript to view this site.

Knowledge Base

Navigation: Scripting Language > Interoperability

appevalscript

We've made some changes. Use 'Ctrl-F5' to clear your browser cache.
Scroll Prev Top Next More

A Matlab command that will execute Lumerical script command(s) in an active Lumerical session opened via Matlab interoperability API.

 

Supported Product: FDTD, MODE, DEVICE, INTERCONNECT

 

Syntax

Description

appevalscript(h,'scriptcommand');

Executes an arbitrary Lumerical script command in an active session h

 

 

Example

The following Matlab code example opens FDTD as a client, loads an existing simulation file "MySimulation.fsp", runs the simulation, retrieves transmission from the monitor into Matlab workspace and closes FDTD.

 

path(path,'C:\Program Files\Lumerical\FDTD\api\matlab');  %add Lumerical API path to Matlab; 

 

h=appopen('fdtd');

 

appevalscript(h,'load("MySimulation.fsp");');

appevalscript(h,'run;');

appevalscript(h,'T=transmission("monitor");');

appevalscript(h,'T=T.T;');

 

x=appgetvar(h,'T');

 

appclose(h);

 

See Also

appopen, appclose, appgetvar

Copyright Lumerical Inc. | Privacy | Site Map