API (Matlab and Python Standalone): Non-Sequential Pulsed Laser analysis

  • 23 July 2021
  • 1 reply
  • 242 views

Userlevel 4
Badge +2

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.  

Language: Matlab

 

Click here to download

Date Version OpticStudio Version Comment
2021/07/23 1.0 - Creation
2021/08/13     Added a Python script

1 reply

Userlevel 4
Badge +1

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 

 

Reply