| Focal length: | 120 mm |
| f/number: | 12 |
| Half field of view: | 10 degrees |
| Wavelength: | 550 nm |
This clears out any previous lens data and prepares CODE V to define a new lens. A new lens "wizard" may be used to enter system design specifications, but let us suppose that we choose not to use the wizard. Instead, we enter the system data using the standard CODE V dialog boxes.
System Settings
A title is actually optional, but it's a good idea. The title appears on most graphical and tabular output.
Choose appropriate system units and enter your initials as the designer.
Pupil
CODE V needs to know the system aperture (or pupil size) of your system. This can be entered in one of four ways, entrance pupil diameter, numerical aperture at the object or image, or image space f/number; one of these must be entered, since there is no default pupil specifcation. The pupil specification defines the extent of the light bundles traced from each field point.
Wavelengths
You must specify at least one wavelength. An easy way to choose a number of
wavelengths is to select a spectrum. We have chosen Visible D.
Wavelengths area always entered in nanometers, regardless of system
dimensions.
You may add or delete wavelengths from the list. Double-click the wavelength box to bring up a list of possible wavelength choices. You can change the weight and plot color associated with each wavelength as well.
Fields/Vignetting
Most systems have a non-zero field of view, and in CODE V we predefine one or more specfic field or object points at which to do analysis and optimization. For an infinite object distance, semi-field angle (in degrees) is the most common field specification.
Field angles should be entered in increasing order and should be entered as a Y-Angle for symmetric optical systems.
Right click on the Stop surface to bring up a context-sensitive menu. Choose Insert from that menu. This brings up the "Insert Surfaces" dialog. Insert two surfaces.
| Surface | Y Radius | Thickness | Glass |
|---|---|---|---|
| 1 | 30 | 3 | BK7 |
| 2 | 60 | 0 | |
| Stop | | 100 | |
You can double-click to highlight any field, then type a new value. You can also move between data fields with TAB (move right) and Shift-TAB (move left) keys, or move up and down with the vertical arrow keys or the up/down arrow toolbar buttons.
Now is a good time to draw a picture of the lens and verify that it looks reasonable. Plots are generated in a seperate plot window.
Notice how each field has a set of three rays displayed, the central ray and two marginal rays.
You may have noticed that the value of 100 mm was not a very good guess for the distance from surface 3 to the image. We could try various values to achieve better focus, but there's an easier way. The paraxial image solve can set the focal distance directly, without trial and error.
Paraxial Image Distance Solve as the type of solve from
the drop-down list box.
Note that after entering this solve the thickness is updated.
Furthermore, redrawing the lens (use the execute button
on the "Quick Lens Drawing" window) will show that the lens is now in focus.
We've done a fair amount of data entry, and the lens is a valid one (indicated by the prescence of non-blank first-order values on the bottom of the main Lens Data screen), so it would be wise to save our work in a disk file.
Specific Constraints tab.
Insert Specific Constraint.
We want to hold the effective focal length to 120 mm so we enter that number for
the constraint target. Then Press OK
OK to start the optimization sequence.
This produces a default optimization that holds the system's effective focal length (EFL) to its target value. It generates a grid of rays from each object point and wavelength, and tries to minimize the RMS spot size of these ray bundles. It does this by changing the variables, while meeting any required constraints.
An automatic design text window shows the results of the optimization.
The Lens Data Manager window is updated.
Press the Execute button
on the Quick Lens Drawing window to show the results of optimization.
Look in the CODE V Output window to see the results.
Landscape lens
RDY THI RMD GLA CCY THC GLC
OBJ: INFINITY INFINITY 100 100
1: 31.34486 3.000000 BK7_SCHOTT 0 100
> 2: 61.31151 19.605892 0 0
STO: INFINITY 96.480884 100 PIM
IMG: INFINITY 0.000000 100 100
SPECIFICATION DATA
EPD 10.00000
DIM MM
WL 656.27 587.56 486.13
REF 2
WTW 1 1 1
INI jsl
XAN 0.00000 0.00000
YAN 0.00000 10.00000
This display shows the tangential and sagittal field curves and the distortion, both as a function of field height on the vertical axis.
Look in the CODE V Output window to see the results.
FIO SO..I
Landscape lens
Position 1, Wavelength = 587.6 NM
HMY UMY N * IMY HCY UCY N * ICY
EP 5.000000 0.000000 0.000000 0.176327
1 5.000000 -0.054350 0.159516 -4.805215 0.168482 0.023025
2 4.836951 -0.041667 0.037225 -4.299770 0.219310 0.149180
STO 4.020038 -0.041667 -0.041667 0.000000 0.219310 0.219310
IMG 0.000000 -0.041667 21.159230 0.219310
where
Look in the CODE V Output window to see the results
THO SO..I
Landscape lens
Position 1, Wavelength = 587.6 NM
SA TCO TAS SAS PTB DST AX LAT PTZ
1 -0.054705 -0.023689 -0.104807 -0.102528 -0.101388 -0.014799 -0.101640 -0.014671 -0.010870
2 -0.000469 -0.005642 0.029222 0.044296 0.051834 0.177521 0.022945 0.091955 0.005557
STO 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
SUM -0.055174 -0.029332 -0.075585 -0.058231 -0.049554 0.162721 -0.078695 0.077283 -0.005313
where
and
CODE V saves the lens with a new version number appended to the file name.
Maintained by John Loomis, last updated 25 Jan 2003