Hi to everyone.
I am trying to design a Bragg grating using only the script editor. I want to perform a parameter sweep for the grating period (also using a script).
The grating period is not listed in the objects list so to be able to perform the sweep.
The code below is incorrect. Can anyone help me with this? Thank you.
For example:
GratingPeriod=1e-6;
addsweep;
setsweep("sweep", "name", "gratperiod");
setsweep("gratperiod", "type", "Ranges");
addsweep("parameter","GratingPeriod");