New Zemax user, long time CodeV user
I am attempting to do a tolerancing exercise on a lens, but some Monte Carlo results are not focusing correctly. I suspect it is something to do with the default focus optimization for MTF tolerancing being wavefront optimization (which is bad at finding best focus even in the optimizer stand-alone when I open the worst Monte Carlo result and manually optimize).
Is there a way to tell the refocus method within the tolerancing function to use RMS spot optimization? Or does someone have other wisdom to offer?
MTF tolerancing focus errors - Can I use RMS spot metric to refocus during MTF tolerancing?
Best answer by Chris Normanshire
Hi Giles,
You can use a tolerance script for this. This article explains how to use a script to report any value from the merit function during tolerancing How to get any optimization operand value in the tolerance report – Knowledgebase.
You could have one merit function that optimises for spot size and then has one, or more, zero-weighted, MTF operands for reporting. However, it would be more efficient to create and save two merit functions, one for spot size and one with the MTF operands. Then, in your script, you’d first the load the spot spot size merit function and optimise your compensators, and second you’d load the MTF merit function and just report the values you need.
Chris
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.