Skip to main content
Question

Reading ZRD data on detector using ZOS-API Matlab


Daniel P. Calero

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

Forum|alt.badge.img+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


Daniel P. Calero

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


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