Home › Forums › FDTD › Batch export analysis files? › Reply To: Batch export analysis files?
![Profile Photo](https://optiwave.com/wp-content/uploads/avatars/13853/59baa5f8596d2-bpfull.png)
The command you are looking for is in the VBScript manual and it is GetTimeSeries( String fieldcomponent ) so to export the Ex field for “InsideMaterial” as “InsideMaterial_Ex_#.f2d” where the # is the iteration number then you would need to place the following in your for loop after the ParamMgr.Simulate call
Set inside_data = InsideMaterial.GetTimeSeries ( “Ex” )
inside_data.WriteF2D (“InsideMaterial_Ex_” & x & “.f2d”
You would need to repeat that line for each observation point / field component combination you need.
Please note it is advised to put a wait command after the simulate before any processing or restarting the loop. So right after the ParamMgr.Simulate you should have a WGMgr.Sleep( 50 ).
Scott
Categories
- All
-
Knowledge
Contains a detailed Q&A knowledge base. -
General
All non-technical questions. -
System
Optical system design and analysis. -
Instrument
Communicate and control different kinds of instruments. -
SPICE
Opto-electronic circuit design. -
FDTD
Finite-Difference Time-Domain simulation. -
BPM
Beam Propagation Method analysis and design. -
Grating
Fiber optic grating simulation. -
Fiber
Optical fiber design and characterization. -
Exchange
Users can exchange design files.
(Matlab, C++, etc.)