Please enable JavaScript to view this site.

Knowledge Base

Navigation: Scripting Language > Adding Objects

addimportedsource

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

Adds an imported source to the simulation environment.

 

Supported Product: FDTD

 

Syntax

Description

addimportedsource;

Adds an imported source to the simulation environment.

This function does not return any data.

 

Example

The following script commands will add an imported source to the simulation environment, assign a name to it and load an E field profile from a *.mat file.

%Add the source object to the simulation

addimportedsource;

set("name","source2");

 

%Load a filed profile saved in Matlab file named myfile.mat

select("source2");

importdataset("myfile.mat");

 

 

To see an example of how script commands can be used to create an imported source using monitor data go to this KB page: Custom source profile from monitor data.

 

See Also

Adding Objects, asapimport, asapload, asapexport, importdataset

Copyright Lumerical Inc. | Privacy | Site Map