CODE V Macros You Should Be Using for MTF
Macro-PLUS™ is CODE V’s built-in programming language, and it is used to automate sequences of commands. Macros can provide an alternative view of data generated by CODE V or perform specialized computations not done in CODE V. Some standard features are macros integrated into the user interface, such as:
Macro Manager in CODE V
Many other macros are supplied with CODE V. CODE V’s Macro Manager provides access to macros grouped into descriptive categories. You can get there by going to Tools > Macro Manager… > Sample Macros. In addition to the functionally grouped macros, there are also examples of user-modifiable routines and macro functions. There are three options to incorporate macros into your CODE V interface. In addition, you can easily edit the selected macro.
Example: Digital Camera Lens Specifications
This example from our Introduction to CODE V training introduces lens entry, analysis and optimization in CODE V.
In addition to the MTF at requested frequencies, the MTF option provides additional information about each field:
Recommended by LinkedIn
Viewing the MTF values for multiple fields requires scrolling through the output. Using the Macro Manager, go to Diffraction Analysis > MTFTab.seq and enter the necessary inputs.
The MTFTab.seq macro produces a concise listing containing only the MTF values, shown below:
You can also use the “MTFDet.seq” macro to include the effect of the detector by going to Diffraction Analysis > MTFDet.seq. The detector size determines the cutoff frequency and also will impact the final performance. The MTFDet macro plots optical MTF cascaded with detector MTF for the combined MTF of the system.
Another MTF macro you should be using is MTFvsFLD.seq. Camera designers often plot the modulation as a function of field position. This plot is found by going to Diffraction Analysis > MTFvsFLD.seq. You can enter up to 3 frequencies for analysis. You also specify the number of field points for analysis; the number of fields points is added evenly between F1 & FL.
These macros and many more are available; just explore the Macro Manager! If a macro name seems intriguing, press the Edit button and read the description included in the header and comments of the macro.
Additional documentation and descriptions of supplied macros is available from Help > CODE V Documentation Library > CODE V Macro-PLUS Reference Manual, Chapter 5 “CODE V Supplied Macros.”
You can also contact CODE V Tech Support by emailing codev_support@synopsys.com.