CODEV Ch2
CODEV Ch2
Search
Chapter 1
Welcome to CODE V
CODE V is a tool for designing and analyzing optical systems. This chapter
introduces you to CODE V, describes what is available to help you learn and use it,
and briefly describes the user interface and structure of the program.
Contents
What is CODE V?
Search
Audience
The intended audience for this manual is any technically oriented person who wants
to use CODE V to model, analyze, and optimize optical systems. Although a
background in optics or optical engineering is certainly helpful, there are many
users of CODE V who have learned the necessary skills and knowledge on their
own, through professional seminars (SPIE and others) or through self-study with
various books. CODE V is not a magic black box that will allow anyone to design
lenses with no understanding of optics, but the necessary background can often be
learned as you work with the program.
Learning More
If you need more detailed information and practice on the mechanics of the user
interface, work through the CODE V Test Drive. To find more detailed information
or additional examples on program features, the online Help or the CODE V
Reference Manual is a good source (see “Online Help and Documentation” below
for more details).
Tip: Chapter 10, Tech Talk: Useful Background contains a lot of valuable material
that supplements and explains optical modeling issues in more detail. It covers
coordinate systems, System Data details, pupils and vignetting, and other important
subjects. You may want to skim through it before doing the examples in Chapter 2
and Chapter 3.
• Choose Help > CODE V Help (or press F1) to get into the help system on a
page with information targeted to the currently open window or dialog box.
• Choose Help > Contents and Index to open the help contents browser; double-
click on topic headers to expand them and view the many sub-topics. You can
also search the Help contents from this window.
• Choose Help > What's This? Help (or press SHIFT+F1) to change the cursor
into a “help pointer” with which you can click on an item of interest and see a
relevant help topic (most items in the interface have some help, but not all).
• Choose Help > CODE V Reference Manual to open the PDF (Adobe Acrobat)
file for the complete CODE V Reference Manual, including all text, graphics
and examples. The Reference Manual is completely searchable and print ready.
• Choose Help > Tip of the Day to view a CODE V tip (you can also turn off
Show Tips on Startup in this dialog box).
Object and Image surfaces—The object surface is where light is assumed to start,
and the image surface is where light is usually collected and analyzed (an image is
Search
often formed there, but not always). The words object and image have special
meaning in general or classical optics. We will refer you to basic optics texts for
more on this subject. Many (perhaps most) systems modeled in CODE V are
image-forming systems, so these relationships are important, although it is more
important to know the concepts and meanings than the equations, since CODE V
calculates these quantities for you.
First-order or paraxial optics—Ray tracing can be reduced to simpler linear
equations by making certain assumptions (e.g., angles are small so that sin θ = θ,
ray heights are small, etc.). These are called first order or paraxial relationships, and
they are convenient for defining the basic properties of optical systems.
Focal length—A basic first-order property of an image-forming optical system, the
focal length of a thin (zero thickness) lens is the distance at which light rays from
infinity will converge to form an image. Effective focal length (EFL) accounts for
the non-zero thickness of a real optical system.
Airy Disc—An Airy disc represents the best possible focused image of a point
source using a perfect lens with a circular aperture. The diameter of the first
minimum in the point spread function (PSF) is 2.44λ(f-number). You will come
across many references to the Airy disc throughout the CODE V documentation.
2.44λ(f/no)
Intensity at
image plane
There are probably more concepts and terms that we will assume you understand,
but these are the basic building blocks. If this is all unfamiliar to you, you may want
to read some chapters from the books listed in Appendix B, or you can just dive in
and see how you do.
Tip: Note that when you work with spreadsheets in CODE V, you can select either
individual cells or entire rows or columns. Cells correspond to particular data items
such as thickness, while rows usually correspond to entire surfaces. The right click
menus will be different depending on which you select. To select a row, click in the
left-most cell until the row highlights. You can also drag to select multiple rows,
then right-click to do something with them (like deleting a block of surfaces).
All that being said, following is a screen shot from the program, along with brief
definitions of the key parts. You can refer back to this page if you encounter a term
such as status bar and you don’t recall what or where it is.
Macro-PLUS
Search Another place to view and learn command language is through ORA-supplied
macros. There are a large number of them found in the Macro dialog box (Tools >
Macro Manager menu), or in the \macro subdirectory of the CODE V installation
directory. In fact, although you can use supplied macros very well from the menu
interface, you must use commands to write macros. The CODE V online Help has
an excellent section on the built-in Macro-PLUS programming language and
supplied macros.
Options
ANALYSIS AUTO MTF SPOT TOR VIEW COST
Basic ray trace Calculate/plot MTF or RMS Lens drawing
Lens optimization Spot diagram Lens cost
analysis modulation based tolerancing (2D, 3D) estimator
transfer function
Installing CODE V
We assume that CODE V has already been properly installed. For help with this,
please see the installation guide that came with your CODE V CD-ROM. Also
make sure that your security key is attached to the parallel port, if a key is required
for your installation. If you have problems, see “Getting Technical Support” below.
Starting CODE V
To start CODE V, simply use the Windows Start menu to locate the program
shortcut (or double-click the desktop shortcut if you've kept it).
Search