Skip to main content

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

  • July 23, 2021
  • 1 reply
  • 361 views

Julia
Fully Spectral
Forum|alt.badge.img+2
  • Fully Spectral
  • 53 replies

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
Did this topic help you find an answer to your question?

1 reply

Sahil
Forum|alt.badge.img+1
  • Visible
  • 22 replies
  • August 13, 2021

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


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings