Question

Reading ZRD data on detector using ZOS-API Matlab

  • 1 June 2023
  • 2 replies
  • 80 views

Hi,

I am trying to use a Matlab script to trace rays and read only the rays that hit my detector after a ghost reflection.

I have been trying to save the rays and use a filter to select only the ones I want. Unfortunately, I am not able to read the detector using the ray database. 

Does anybody have a tip to solve this issue?

Thanks,

Daniel


2 replies

Userlevel 6
Badge +2

Hi @Daniel P. Calero 

Have you tried the sample file 10 under {Zemax}\ZOS-API Sample Code\MATLAB\MATLABStandalone_10_NSC_ZRD_filter_string.m"? Our sample files are described in this article: https://support.zemax.com/hc/en-us/articles/1500005577322-Sample-code-for-ZOS-API-users

Hi Sandrine,

Thank you for your answer. 

I used the Example 10 as baseline for the simulations. Unfortunately it did not read the detectors properly. The output from the script and the results of the .zrd were not the same.

I am now saving the results and evaluating them manually.

Best regards,

Daniel

Reply