Skip to main content
Solved

macro for focal length tolerance

  • August 9, 2021
  • 1 reply
  • 388 views

Can someone share macro for tolerancing focal length? The tolerancing menu does not contain it.

Best answer by Allie

Hi Jason,

For tolerancing focal length, you can use either the Merit Function or User Script criterion. First, build your Merit Function with your focal length criterion. If this is the only operand in the Merit Function, then add your Target and Weight, and run the tolerance with Merit Function criterion selected. Now, the tolerance will optimize towards and report the value of the focal length only

If the Merit Function has multiple targets (such as focal length + MTF) then it may be more useful to set the focal length as a reported value instead of setting it as the image quality definition. This can be done by setting the criterion to User Script. Follow the steps in the Knowledgebase article “How to get any optimization operand value in the tolerance report” for more information.

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

1 reply

Allie
Zemax Staff
Forum|alt.badge.img+2
  • Zemax Staff
  • 338 replies
  • Answer
  • August 11, 2021

Hi Jason,

For tolerancing focal length, you can use either the Merit Function or User Script criterion. First, build your Merit Function with your focal length criterion. If this is the only operand in the Merit Function, then add your Target and Weight, and run the tolerance with Merit Function criterion selected. Now, the tolerance will optimize towards and report the value of the focal length only

If the Merit Function has multiple targets (such as focal length + MTF) then it may be more useful to set the focal length as a reported value instead of setting it as the image quality definition. This can be done by setting the criterion to User Script. Follow the steps in the Knowledgebase article “How to get any optimization operand value in the tolerance report” for more information.


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