Skip to main content

Hello,

I would like to know how can I create a diffractive lens in a sequential mode using a dll ? 

 

Thank you.

 

Hi Samia,

 

This is quite a general question. I’d recommend reading about the DLL knowledgebase articles here to get familiar with this feature. Then, you can browse the sample files in you {Documents}\Zemax\DLL\Surfaces. If you have an equation which describes how the rays bend upon interacting with your custom surface, it should be possible.

Take care,

 

David


Some good references are: https://support.zemax.com/hc/en-us/articles/1500005578162-Custom-DLLs-in-OpticStudio-An-overview-of-user-defined-surfaces-objects-and-other-DLL-types

And check this sample file: "{Zemax}\DLL\Surfaces\us_grate.c"

We also had an “Ask an engineer” event about DLLs lately. The recording is available in the post: 

 


Reply