Solved

about macro getmtf

  • 10 February 2021
  • 1 reply
  • 119 views

Hi, I want to do a loop to get a lot of MTF curves. How do I do with GETMTF?


I know how to run it in a single time, but if I want to change object distance every time and rerun the GETMTF,


how should I do the loop? How to set object distance at ZPL macro?


Thanks a lot. 

icon

Best answer by Berta.Bernad 11 February 2021, 10:54

View original

1 reply

Userlevel 3
Badge +1

Hi Weihua,


You can set object distance (and another properties of surfaces) with the keywords SETSURFACEPROPERTY/SURP


The Programming Tab > About the ZPL > KEYWORDS (about the zpl) > SETSURFACEPROPERTY, SURP



And then use a FOR loop to change it. The sintax for FOR loops is the following: 


FOR variable, start_value, stop_value, increment


(commands)


NEXT


So something like this will change the object distance from 10 to 100 with an increment of 10 and retrieve the MTF:


Reply