API (Matlab and Python Standalone): Non-Sequential Pulsed Laser analysis
This Matlab code shows the possibility of simulating a pulsed laser by using ZOS-API. In this example, amplitude of the pulsed laser varied over time, and the irradiance in the detector being recorded. The final results being exported as a video.
API (Python Standalone): Non-Sequential Pulsed Laser analysis
This Python code is translated from Matlab Code shows the possibility of simulating a pulsed laser by using ZOS-API. In this example, amplitude of the pulsed laser varied over time, and the irradiance in the detector being recorded.
For Laser Pulse demonstration ,Source diode from sample file is used .It is avilable in "C:\Users\<YourComputerName>\OneDrive - Zemax LLC\Documents\Zemax\Samples\Non-sequential\Sources\Diode sample.ZMX".I would recommend to copy from OneDrive to any Local drive(In this example Source diode is copied to C: drive in sample folder) such as C:\Sample\Diode sample.zmx.
It has variable stepsize currently set as 40 stepsize . It provides the power 20 times to source diode in gaussian pattern to have gaussian laser pulse.
Need to intsall python packages Matplotlib ,cmath,Axes3D and Numpy