This webinar will demonstrate how to utilize the Zemax OpticStudio Application Programming Interface (ZOS-API) for accessing the Ray Database (ZRD). We will show you the necessary methods and some tips & tricks on how to handle rays and segments with the ZRD Reader.
Authored By Thomas Pickering
Downloads
Video
Accessing the Ray Database with the ZOS-API using MATLAB - YouTube
The sample Matlab scripts and required Raytrace.dll is included in the Article Attachment link. The Raytrace.dll needs to be placed in the same folder as the MATLAB script. The updated file ZRDLoaderFull.dll uses the ReadNextSegmentFull() method to access all the information available in a ZRD file.
References
You can find more information about this method in the ZOS-API Syntax Help, which is included in OpticStudio 18.1 and higher. It is built into Opticstudio on the "Help" tab. See Navigating the ZOS-API Syntax Help document - Part 1
The article Batch Processing of Ray Trace Data using ZOS-API in MATLAB may also be useful as it uses the same DLL's and similar scripts.
KA-01768
Comments
Please sign in to leave a comment.