Skip to main content
Solved

ZPLM uncorrectly read by merit function


Audrey L

Hello,
 

I created a ZPL (ZPL02.zpl), it seems to work if I run it directly through Programming>Edit/Run, but not inside the merit function.

PRINT "worst case : ", worst_color

OPTRETURN 0, worst_color

Those two lines do not give the same value. The first one gives a correct value. In addition, when I call this ZPL through the merit function, it does not update the output value.
What should I do?
Thanks in advance for your help,
 

 

Best answer by Audrey L

It appears that zpl called by merit function open macros in the directory\MACROS where you are actually working, and not on the Zemax\MACROS directory as for the ZPL you are running from the Programming tab.

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

2 replies

Audrey L
  • Author
  • Single Emitter
  • 2 replies
  • May 11, 2023

I should also add, that it appears that the merit function does not see a saved modification set in the ZPL. It keeps the definition the way it was first used.

It looks that Zemax need to be reloaded.


Audrey L
  • Author
  • Single Emitter
  • 2 replies
  • Answer
  • May 11, 2023

It appears that zpl called by merit function open macros in the directory\MACROS where you are actually working, and not on the Zemax\MACROS directory as for the ZPL you are running from the Programming tab.


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