Skip to main content

[ZOS-API - MATLAB] open files and raytrace

  • December 8, 2020
  • 1 reply
  • 163 views

Hello!

I tried to open .zmx files and raytrace them, but I got an error code:

Error: Dot indexing is not supported for variables of this type.
        normUnPolData = rayTracer.CreateNormUnpol(nRays,realRayType,nSurf); 

 

I think that when I open another .zmx file, the 'Open Batch RayTrace' code doesn't seem to be updated.

Could you tell me how can I solve this problem?

Thanks.

Did this topic help you find an answer to your question?

1 reply

David.Nguyen
Luminary
Forum|alt.badge.img+2
  • Luminary
  • 1098 replies
  • January 19, 2021

Hi Kim,

Could you share an example with us? I don't see the rest of your code but in the ZOS-API syntax help, the raytracing tool is often refered to as rayTrace, and not rayTracer. Is it possible you made a typo?

The correct line of code should then be:

normUnPolData = rayTrace.CreateNormUnpol(nRays,realRayType,nSurf); 

Take care,

David


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