// Randomise the Full-width sliders

.hpg files and OSLO

Question I am trying to convert an output *.hpg file (Hewlett Packard graphics file) into a postscript file. I used to be able to successfully do this using the hp2ps command. Since then there has been a lot of change in the people that control the Unix machines here...

Accessing ray data within a SCP or CCL macro

Question I would like to get paraxial PY and PUY at different surfaces as well as real ray trace values. How do I extract ray data within a CCL or SCP macro command? Please note that OSLO contains two macro-programming languages: CCL – Compiled Command Language...

Accessing the Catalog Lens Database within a lens file

Question How do I insert a catalog lens into my OSLO lens file? Synopsis Accessing the Catalog Lens Database within a lens file Solution “To insert a lens from the Lens Catalog Database into an existing lens: In the Surface Data Spreadsheet, click the right...

Accessing the Lens Catalog Database for a new lens

Question How do I access the Lens Catalog Database if I want to use it as a new OSLO lens? Synopsis Accessing the Lens Catalog Database for a new lens Solution “To access the Lens Catalog Database as a new lens in OSLO, Select ” File>>New...

Accessing the OSLO Spreadsheet Buffer

Question I have heard that I can re-use data from the OSLO Spreadsheet Buffer in my own CCL macro commands. But I don’t know what the Spreadsheet Buffer is. How do I access the Spreadsheet Buffer? Synopsis Accessing the OSLO Spreadsheet Buffer Solution Whenever...

Adding a dialog to a custom CCL program

Question I’m trying to add dialog boxes to my CCL program. How do I do this? Synopsis Adding a dialog to a custom CCL program Solution Note that you can add a dialog box to any CCL command just by typing     Arg_Entry = Dialog_Box; YourCCLcommand; on the command...

Adding items to the User Tools toolbar

Question I notice that the a_menu.ccl file defines the OSLO menu and toolbar structure. This means that it can be altered by any user. I also note that there is a special text window toolbar and graphics window toolbar, each named _USER_TOOLS_ . How do I get these...

Adding terms to an aspheric surface

Question How do I add aspheric terms to a surface in OSLO? Synopsis Adding terms to an aspheric surface Solution Identify the surface that you want to add an aspheric to and choose the grey box in the “Special” column of that surface. Choose ”...

Applying a color weighting function during optimization

Question I notice in the Optimization Conditions dialog box (see the menu item “Optimize>>Optimization Conditions”), that I can apply field, pupil and color weighting functions. How can I do this? Synopsis Applying a color weighting function during...

Applying a field weighting function during optimization

Question I notice in the Optimization Conditions dialog box (see the menu item “Optimize>>Optimization Conditions”), that I can apply field, pupil and color weighting functions. How can I do this? Synopsis Applying a field weighting function during...

Applying a pupil weighting function during optimization

Question I notice in the Optimization Conditions dialog box (see the menu item “Optimize>>Optimization Conditions”), that I can apply field, pupil and color weighting functions. How can I do this? Synopsis Applying a pupil weighting function during...

Applying and using the SKIP TO surface parameter

Question I want to temporarily delete or hide certain surfaces in my system, but I want to bring them back later without having to re-enter them. How do I do this in OSLO? Synopsis Applying and using the SKIP TO surface parameter Workaround OSLO allows you to...

Assigning aspheric coefficients as variables for optimization

Question I want to vary the aspheric coefficients of a surface during optimization, but I can’t seem to choose the aspheric coefficients when I try to assign variables for that surface. What is wrong? Synopsis Assigning aspheric coefficients as variables for...

Autofocus consistency

Question When I click on the autofocus button, I get a different value each time I press it. Why does it do this? Isn’t there a best focus position? Synopsis Autofocus consistency Solution “When you click on the autofocus button, a mini-optimization takes...

Calculation of ray angles through multilayers?

Question Is it possible to calculate light emission angles, propagation angles, and paths through multilayer coatings? Synopsis Calculation of ray angles through multilayers? Solution Propagation angles are calculated throughout the optical design and are preserved...

Calculation of the derivative increment during optimization

Question I am attempting to control the derivative increment of some variables during optimization. But whenever I set the derivative increment in the Variables Data Editor, I find that OSLO overrides it during optimization. How can I force OSLO to use my intended...

Can OSLO use custom coatings?

Question Can I add different antireflection coatings in OSLO? Synopsis Can OSLO use custom coatings? Solution Once a complete multilayer coating is defined, you assign it a name and that coating can be applied to any optical surface. You can build up a custom database...

Catalog Lens Vendors

Question What lens catalogs are currently available in OSLO 6.1? Synopsis Catalog Lens Vendors Solution “OSLO 6.1 contains lens catalog data from 8 different vendors. They are:   EDMUND – Edmund Industrial Optics www.edmundoptics.com GLT –...

CCL and pointers.

Question Why doesn’t CCL have pointers? Synopsis CCL and pointers. Solution They are not needed. The main reasons for pointers in C concern the structure of arrays, and passing function parameters by reference. CCL uses conventions similar to Fortran for these...

CCL and structs

Question Why doesn’t CCL have structs? Synopsis CCL and structs Solution CCL is intended for applications programming. The data storage flexibility afforded by structs is not important to most CCL applications. CCL does allow either local or global scope, as...

CCL Editors

Question Should I use the OSLO or UltraEdit text editor for CCL? Synopsis CCL Editors Symptoms UltraEdit is a third party program that has serious professional-level file editing features such as multiple-file editing, extensive searching options and color syntax...

CCL graphics routines and gshow.

Question Why doesn’t my simple CCL graphics routine work in CCL? Synopsis CCL graphics routines and gshow. Solution The most common cause of this is a failure to place a gshow command at the end of a sequence of lineto (glt) or moveto (gmt) commands. These...

Changing the ray colors in a lens drawing

Question I would like to change the colors of the rays that are drawn in the standard lens drawings. By default, green, blue, red,…etc. is chosen. How do I assign rays specific colors? Synopsis Changing the ray colors in a lens drawing Solution Note that fans of...

Changing units for tilt tolerances

Question “I am trying to figure out why ” ttun set deg” and “ttun set min” seem to have no effect. In my lens file, I clicked ” Lens >> Show Tolerance Data >> Surface”, and OSLO rd ” Tilt tolerances are...

Clarifying use of the terms “dispersion” and “V-number”

Question I notice that when I edit my wavelengths in OSLO, the V-number of my glasses seems to change. I thought that the V-number of a glass was calculated based on certain set wavelengths and was independent of the wavelengths you model the glass for. How does OSLO...

Computing the coupling efficiency of a complex waveguide

Question I want to perform the overlap integral of the OSLO coupling efficiency calculation on a more complex mode structure than a fibre, so I would like to output the amplitude and phase of the point spread function to a file. The PSF is calculated using an FFT, so...

Confusion using apertures with Gaussian beam apodization

Question “I am attempting to acquaint myself with the Gaussian Beam propagation options in OSLO (ABCD Analysis, Astigmatic Gaussian Beam and Fiber Coupling). I have read and followed the “Gaussian Beam and Fiber Coupling” tutorial offered on your...

Controlling a lens system to be telecentric

Question I am working on an optical model where I want the system to be telecentric in both object and image space. How do I do this? Synopsis Controlling a lens system to be telecentric Solution When a system is telecentric in both object and image space, it is...

Controlling data within the Spreadsheet Buffer

Question I know how to access data from the Spreadsheet Buffer, but I seem that whenever I create analysis data, the data appears in different locations within the Spreadsheet Buffer. How can I reliably determine where the data I want is located within the Spreadsheet...

Controlling the maximium range value when programming a slider

Question I would like to control the range of my slider wheel in my CCL program code. I also want to set the number of slider increments, so I am trying to use the “realfix” option in the graphwin_sliderassign(gsa) command. But I found that OSLO chooses a...

Copying CCL files to the private CCL directory

Question As instructed, when I want to alter a public CCL file, I first make a copy of the file and place it in the private CCL directory. But now when I compile the CCL’s in the private directory, I encounter a bunch of errors. I thought this was the...

Copying mulitple spreadsheet cells into OSLO

Question I am attempting to copy a few of cells from an electronic spreadsheet (such as MS Excel) into OSLO, but OSLO only accepts the entry for the first cell. Is there a trick that I am missing? Synopsis Copying multiple spreadsheet cells into OSLO Solution The...

Creates spline points from existing surface

Question ABCswap: Adds a bicubic spline to a surface. The spline is modeled on the surface contour that exists before the spline is added. Make sure to remove the previous surface contour afterwards to avoid redundancy. Synopsis Creates spline points from the existing...

Creating a private lens library using OSLO’s database function

Question I have read through the online help page introducing how to create a private lens database, but I am still lost. How do I specify which folders or directories I want to be included in my private lens database? Synopsis Creating a private lens library using...

Creating a shared glass catalog

Question How can I set up a single shared material (glass) catalog which can be accessed by other OSLO users in my company? Synopsis Creating a shared glass catalog Solution “Currently there is no way for designers to share a single file (as in ‘over a...

Creating an axicon in OSLO

Question I want to create an axicon in OSLO. Is there a surface type that does this? How do I go about using it? Synopsis Creating an axicon in OSLO Solution “The word axicon is typically used to describe a cone-shaped surface that is symmetrical about an axis...

Creating Boundary Drawing Information for a simple wedged prism

Question I want to enter a simple wedged prism in OSLO. I notice that when I make the wedge angle 1 degree or greater, the 2 optical surfaces of the prism no longer appear as a single object in OSLO drawings. How do I get around this so that OSLO draws the entire...

Data exchange between OSLO and MATLAB

Question I noticed on the Mathworks site, that OSLO can be used with MATLAB. Would you be able to send me some information regarding OSLO itself and how it can be used with MATLAB? Synopsis Data exchange between OSLO and MATLAB Solution “The following Knowledge...

Defining value of array elements when dimensioning array

Question I am having trouble defining the value of array elements when I dimension an array in CCL. What is the syntax for doing this? Synopsis Defining the value of array elements when dimensioning array Symptoms Perhaps the best way to approach this problem is by...

Definition of DN

Question What is the definition of DN? I notice that if I load N-BK7 from the Schott catalog, convert it into a model glass, and mark the dispersion (DN) of the glass as a variable, the initial DN is calculated as DN = 0.246045 while the VNBR = 64.16641. How do you...

Definition: vignetting

Question “What does “vignetting” mean as it applies to optical design?” Synopsis Definition: vignetting Solution “An optical ray is vignetted when it passes through (or would have passed through) the limiting aperture of an optical system...

Describing Monte Carlo tolerance analysis output

Question I am trying to perform some Monte Carlo tolerance analysis, but I am having trouble interpreting what some of the output data means. Can you please indicate where I can find an explanation of the Monte Carlo tolerance analysis output? Synopsis Describing...

Design of Offner imaging spectrometers

Question “This routine provides a graphical interface to design Offner imaging spectrometers. It is based on the sliders of Joseph M. Howard (see ref. 1) and is an implementation in OSLO ccl programing language of the equations presented in ref. 2.References:1....

Determining distances between points on two surfaces

Question Several times I have had the need to measure a distance, say from the front surface of a lens to the aperture stop, or the length of a group of lens elements (for example, surface 5 to surface 11). Is there an easier way of doing this than manually adding up...

Determining the correct syntax for OSLO commands

Question I want to use an OSLO command in a CCL macro I am writing. How do I make sure that the command has the correct syntax? Synopsis Determining the correct syntax for OSLO commands Solution There are at least four different ways to determine the correct syntax of...

Difference in optimization options (OSLO, GENII etc.)

Question Could you briefly explain the difference in your different optimization options(OSLO, GENII etc.)? Synopsis The difference in optimization options (OSLO, GENII etc.) Solution In order to perform an optimization in OSLO, you need to have an “Error...

Distortion analysis (distplt) in a tilted or decentered system

Question When I do a distortion plot on my optical system, there seems to be a very high peak near the axis, but not on the axis, that diminishes, and then trails off. This seems erroneous. Is this a math artefact or real distortion? Synopsis Distortion analysis...

Doug Sinclair answers waveguide question in newsgroup

Question Amit Itagi “Hi, I am looking for a numerical technique to model light propagation through a particular device. The device is a waveguide lens. I have a planar dielectric waveguide with a thickness on the length scale of a wavelength. But the width is on...

Editing glass catalogs

Question I want to use only preferred or recommended glass from glass manufacturers. Is there an easy way to edit the current catalog from glass vendors to exclude some exotic/expansive glass? Synopsis Editing glass catalogs Workaround “Note that as of OSLO...

Editing of public CCL files

Question How do I change the way a command works in OSLO? I have located the command I want to change and it is in a CCL file in the public CCL directory. Can just go ahead and edit the file? Synopsis Editing of public CCL files Solution OSLO allows users the complete...

Error in optimization: Error function has no weight

Question “I am using OSLO-EDU and attempting to follow an example from your documentation (i.e. the OSLO Optics Reference). I can follow everything just fine until I get to optimization. When I follow the directions and attempt to perform an optimization...

Error in Zoom analysis commands

Question When I attempt to use the Zoom analysis commands (zpxs, zspa, zsen, zchr, zsei & zfif) I get an error similar to: Error in ____: Array index out of bounds. What is the problem? Synopsis Error in Zoom analysis commands Solution Variables are not...

Exporting an OSLO design to a CAD program

Question I tried exporting an OSLO design to a CAD file format, but I am having trouble seeing the file in my CAD program. I am using AutoCAD 2000. Do you have any suggestions? Synopsis Exporting an OSLO design to a CAD program Symptoms The biggest problem that OSLO...

Exporting FFT data to a file

Question I would like to output the amplitude and phase of the point spread function to a file. The PSF is calculated using an FFT, so basically I would like to output the entire FFT array to a file. How can I do this? Synopsis Exporting FFT data to a file Solution...

Extracting 2D wavefront map data

Question Is there a way to extract numerical values from a 2D wavefront map? All I seem to be able to do is generate a 2D wavefront map plot. Synopsis Extracting 2D wavefront map data Solution A new command (GWF) was added in the 6.2.2a release of OSLO to perform just...

Eye model from Liou and Brennan (JOSA A, 1997)

Question I would like a good eye model that I can use in OSLO. One with enough precision that it actually models the gradient material in the lens. Do you have anything like this? Synopsis Eye model from Liou and Brennan (JOSA A, 1997) Solution There are some good eye...

Ghost analysis is not available or is deactivated

Question Whenever I attempt to perform ghost analysis in OSLO, the ghost icon on the spot diagram toolbar is deactivated. Whenever I attempt to use the “ghosts” command from the command line I get the error message “Command is currently...

How to add custom or specialized materials (glasses) to a design

Question I would like to use custom materials for my lens design. What data do I need from the glass manufacturer in order to model it like the usual glass in the “GLASS” column of the surface data spreadsheet? Synopsis How to add custom or specialized...

How to add or subtract wavelengths in an optical system

Question When I start a new lens and open up the Wavelength Data editor, I note that there are three wavelengths defined by default. How do I add or subtract wavelengths? Synopsis How to add or subtract wavelengths in an optical system Solution Once you are in the...

Implementing Network Licensing

Question How does Network Licensing get implemented? Synopsis Implementing Network Licensing Solution Please see the following Licensing Options.

Importing an interferogram file ( *.int) from Wyko software

Question We were trying to import a WYKO .int file for a customer. Our older WYKO 6000 interferometers did not have an option to output a file that OSLO would read. Our new WYKO RTI6100 interferometer, which runs WYKO Vision32 (2.303) does have ASCII file output, but...

Including the effective focal length in the error function

Question Please tell me how to include the effective focal length (EFL) in the error function as referred in OSLO 5.4 Optics Reference Chapter 7, Page 266 (A design project)? Synopsis Including the effective focal length in the error function Solution In rev 5.4, the...

Incorrect calculation of Zernike Phase term #32

Question I have created a lens system that includes a Diffractive Surface described by Zernike coefficients. I note that term #32 of the Asymmetric Zernike Phase terms appears too large. Is this term calculated correctly? Synopsis Incorrect calculation of Zernike...

Information about data exchange formats for OSLO

Question I am interested in exchanging data between OSLO and other programs. How do I accomplish this? Synopsis Information about data exchange formats for OSLO Symptoms There are two main ways to exchange data between OSLO and other programs: Exchanging data files...

Insert Catalog Lens dialog does not appear

Question I have just installed OSLO and I cannot seem to make the Insert Catalog Lens dialog appear. When I right click on a surface number in the Surface Data Spreadsheet and choose Insert Catalog Lens from the resulting pop-up menu, nothing happens. Is this a known...

Keeping post scan mirror surfaces in a static location

Question I have a system with a mirror at 45 deg tilt. I invoked the tilt and bend option on the tilted mirror in order to set the remaining surfaces at the correct 90 deg orientation. However, now I want to see the effect of tilting (or decentering ) the mirror alone...

Known problem with angular dependence of polarization calculation

Question I am doing a polarization calculation where I an sending either linear or elliptically polarized light into my system. I seem to be getting incorrect answers for some orientations of the polarization axis of the input beam. Is there a known problem related to...

Labels for graphs in Ray Intercept Curve report graphics

Question When I plot the Ray Intercept Curve (RIC) Report Graphic, I notice that the axes of many of the individual graphs do not have labels on them. What are the labels on the plotted Axes? Synopsis Labels for graphs in Ray Intercept Curve report graphics Solution...

Lens drawings and incorrect ray paths.

Question Why don’t my lens drawings show the correct ray paths? Synopsis Lens drawings and incorrect ray paths. Solution There are three principal reasons why you might have such a problem: You have entered your data incorrectly. The lens drawings prepared by...

Locating the Landscape Lens file

Question I am currently reading the OSLO Optics Reference 6.1 manual. On page 11 of the hardcopy version (page 20 of the electronic version), I am asked to open the “Landscape 1.len” file. I don_t seem to have this file. Where do I find it? Synopsis...

Making changes to the OSLO menu and toolbars

Question I understand that users are supposed to be able to make changes to the OSLO menu and toolbars. How can I do this? Synopsis Making changes to the OSLO menu and toolbars Solution Understanding this answer requires that you have a working knowledge of using...

Making spreadsheet cell editable from keyboard

Question When I click on any cell in the spreadsheet, the whole cell gets highlighted. If I want to change only a part of the value in the cell, I have to click in the command line. Is there a way to get around this? In Excel, I can double-click my mouse or Press [F2]...

Managing different editing modules

Question When I look through the ASCII text of a lens prescription file, I notice that the commands are in different groups. How many different groups are there? Do I have do worry about these groups when I am creating different macros? Synopsis Managing different...

Method to constrain the angular magnification during optimization

Question How do I constrain the angular magnification of my system during optimization? Synopsis Method to constrain the angular magnification during optimization Solution The most direct way to constrain the system’s angular magnification is by selecting the...

Model of the human eye

Question I need to model the human eye in OSLO. Do you have an example I can use? Synopsis Model of the human eye Solution Lens models of the human eye can be found in the “…publiclenlibwalker” directory. In an OSLO Standard and Premium installation,...

Moving lens thickness independently of other components

Question I want to change the thickness/position of a group of surfaces (or a component group) without affecting the surfaces after the group. When I try to do adjust the first surface of the component group, all surfaces after that initial surface are affected. How...

Multilayer information the designer needs to enter into OSLO

Question I am trying to design multilayer structure LEDs and photodetectors which consist of various epitaxial films. Can I design an optical multilayer structure with OSLO Premium? How about the refractive indices of different materials? Do we have to find them or...

Multilayers calculation and OSLO

Question How many multilayers can be calculated with your software? Synopsis Multilayers calculation and OSLO Solution Thousands.

Non-isotropic media and OSLO

Question Can OSLO handle non-isotropic media, such as Quartz? Synopsis Non-isotropic media and OSLO Solution OSLO has the capability of tracing rays through uniaxial birefringent materials such as calcite (PremiumEdition only). In the physical world, a ray incident...

OSLO analysis causes OpenGL error message

Question When I attempt to perform an analysis in OSLO (e.g. “Source>>View Extended Source Image>>Lambertian”), in the output graphic I get the message: “OpenGL is needed for that plot”. What is the problem? How do I correct this...

OSLO crashes or becomes unstable when changing Coordinates data

Question When I attempt to add a Coordinates Pickup or Coordinate Return on a surface, OSLO either crashes, hangs or does bizarre things. I am using OSLO 6.4.4. What is wrong? Synopsis OSLO crashes or becomes unstable when changing Coordinates data Symptoms This is a...

OSLO Premium shows OSLO Standard menus

Question I have OSLO Premium 6.2.2a installed and I know notice that some of my menu options are missing. What is the problem? Synopsis OSLO Premium shows OSLO Standard menus Symptoms “There are 4 items (instead of 6 items) shown in the...

Overlaying multiple lens configurations in a single drawing

Question I am trying to draw multiple configurations superposed on the same lens drawing (without resetting the graphics window). I am using the cfg, drl and drr commands, but I can’t seem to get the window to stop erasing between the drawing of the different...

Overview: Vignetting Factors

Question “What are “vignetting factors” and how are they used?” Synopsis Overview: Vignetting Factors Solution “Please see the video on the subject if there are some questions as to the use of this term. In systems with large fields of...

Paraxial constants – for a system with tilts and decenters

Question I have a lens system that contains tilts and decenters. However, when I print out the paraxial setup (PXC) for the lens, or trace paraxial rays (PXT) I get answers that seem incorrect. For example, the Effective Focal Length (EFL) listed when I choose PXC...

Performing analysis for an off-axis field point

Question Whenever I perform an analysis in OSLO, OSLO analyzes the on-axis field point. How do I perform an analysis for an off-axis field point? Synopsis Performing analysis for an off-axis field point Solution “For many analyses options in OSLO, you can choose...

Performing fiber-to-fiber coupling in OSLO

Question I would like to simulate fiber-to-fiber coupling. How can I do this in OSLO? Synopsis Performing fiber-to-fiber coupling in OSLO Solution “Fiber-to-fiber coupling is achieved by performing a series of steps in OSLO: Model the end of the initial fiber as...

Performing paraxial ray tracing

Question How do I perform paraxial ray tracing in OSLO? This would be useful to set up first order properties of some complicated lens systems. Synopsis Performing paraxial ray tracing Solution “When optical designers first set up an optical system, they...

Private and public CCL libraries.

Question What is the difference between the private and public CCL library? Synopsis Private and public CCL libraries. Solution OSLO has a special file system containing root subdirectories for public and private files. Public files are ones that are either issued by...

Problem importing Zemax files into OSLO

Question I have selected File/Import Lens File/Zemax, selected a Zemax file, but it fails to open. What can I do to open the file? Synopsis Problem importing Zemax files into OSLO Symptoms Zemax file fails to open in OSLO. One possible cause of this problem is that...

Problem running analyses that use large amounts of memory

Question I tried to run an analysis option in OSLO with ever increasing calculation resolution. However, at a certain point, OSLO doesn’t appear to be able to do the analysis and appears just to hang. I have to force OSLO to stop by using the MS Windows Task...

Problems using C syntax in CCL

Question Why doesn’t my C function work in CCL? Synopsis Problems using C syntax in CCL Solution CCL is a subset of C. If your function uses pointers, structs, unions, casts, or is case-sensitive, it won’t work.

Problems with drawing

Question I seem to have encountered a graphics glitch using v 6.04. I have been bending a plane power singlet to introduce SA and CMA. When I draw the lens the rays are refracted at the front surface but appear to project back at the second surface. To check this,...

Problems with image analysis routines.

Question Why don’t the image analysis routines work with my system? Synopsis Problems with image analysis routines. Solution By far the biggest problem encountered in this area is the failure to use adequate pupil sampling to characterize the image. To compute a...

Problems with OSLO Linux

Question I am currently trying OSLO for Linux, but I am experiencing some user interface problems (window control, graphics not being updated, crashing, …etc.). Are you targeting a specific Linux distribution that will work better than others? Synopsis Problems...

Pupils need adequate sampling in order to do image analysis

Question Why don’t the image analysis routines work with my system? Synopsis Pupils need adequate sampling in order to do image analysis Solution By far the biggest problem encountered in this area is the failure to use adequate pupil sampling to characterize...

Questions on what multilayer coating calculations OSLO can perform

Question Can we calculate the reflection loss of a multilayer coating? Can we calculate the interference of emitted light and reflected light from the outer layer(s) of a multilayer coating? Synopsis Questions on what multilayer coating calculations OSLO can perform...

Reducing the number of configurations in a lens file

Question I have a multi-configuration lens in OSLO and I want to save one of the configurations as a separate single-configuration OSLO file. How can I do that? Synopsis Reducing the number of configurations in a lens file Workaround You can reduce the number of...

Reference sphere radius always calculated to be inifinity

Question Whenever I trace a chief ray, it appears as though the radius of my reference sphere is calculated to be infinite even though I have set the position of the reference sphere to follow the location of the exit pupil. What is wrong? Synopsis Reference sphere...

Restricting tilts and decenters to component groups

Question I want to tilt and decenter a group of surfaces (or a component group) without affecting the surfaces after the group. When I try to do adjust the first surface of the component group, all surfaces after that initial surface are affected. How do I restrict...

Running OSLO from a Batch File

Question I’m interested in running OSLO (ccl files) using a batch file. How can I do this? Synopsis Running OSLO from a Batch File Solution “Note that OSLO looks for and runs a CCL command named Autostart upon startup. This will allow you to run OSLO in a...

Running OSLO remotely

Question Can I run OSLO from other programs or the DOS command line? Is there a good way for OSLO to exchange data with other MS Windows programs such as Matlab, TracePro, MS Word, MS Excel, …etc.? Synopsis Running OSLO remotely Solution “You can run OSLO...

Saving files to different directories using the save() command

Question I am attempting to use the save() command in a CCL routine to save the current lens. I want to save the lens to a particular directory, but I am having trouble specifying that directory using the “directory_name” parameter. What is the problem?...

SCL versus CCL

Question What’s the difference between SCL and CCL? Synopsis SCL versus CCL Solution SCL is a subset of CCL than uses predefined variables and is compiled “on-the-fly”, so it is slower and less comprehensive than CCL. However, for simple tasks that...

Setting up a cylindrical lens in OSLO

Question How do I set up a cylindrical lens in OSLO? If I want the orientation of the cylinder of the lens to be oriented in the orthogonal direction, how do I do that? Synopsis Setting up a cylindrical lens in OSLO Solution For purposes of discussion, we will assume...

Setting up a Fresnel Lens

Question Do you have directions for setting up Fresnel lens in OSLO? Synopsis Setting up a Fresnel Lens Solution Follow the Landscape Lens tutorial to get acquainted with the OSLO interface. Set up the lens system you want by entering the appropriate lens curvatures,...

Showing a surface when drawing a lens

Question OSLO does not seem to show some surfaces in my lens. Why is this? How do I force a surface to be shown when I draw a lens? Synopsis Showing a surface when drawing a lens Solution Try the following: Make sure the Aperture Radius of your surface is large enough...

Simple optimization to find conic mirror foci

Question I am using OSLO-EDU and I am having trouble understanding how to perform an optimization in OSLO. I think it would help me if you can demonstrate a very simple optimization task: How do I use OSLO to optimize the radius and conic of a mirrored surface to...

Simulating a binary DOE lens diffractive optical element

Question How do you simulate a binary diffractive optical element (DOE) in OSLO? Synopsis Simulating a binary DOE lens diffractive optical element Solution Yes. OSLO’s CGH surface option calculates the direction of rays from the grating groove spacing. The...

Slider button does not show up in slider window

Question When I create a slider wheel window, the slider button itself appears to be missing. What is the problem? Synopsis Slider button does not show up in the slider window Symptoms In the slider wheel window, the resolution button appears on the right and the...

Specifying a directory when using fopen()

Question I am having trouble using the fopen() command to write a new file to a specific directory. I can’t seem to find the file after I create it. Do you have some advice or examples I can follow? Synopsis Specifying a directory when using fopen() Solution...

Specifying size and location of exit pupil

Question How can I control the size and location of the Exit Pupil in my optical system? Synopsis Specifying the size and location of the exit pupil Solution The Exit Pupil is the paraxial image of the Aperture Stop in image space.  The optics between the Aperture...

Specifying size and location of exit pupil during optimization

Question How can I control the size and location of the Exit Pupil in my optical system during optimization? Synopsis Specifying size and location of exit pupil during optimization Symptoms The Exit Pupil is the paraxial image of the Aperture Stop in image space. The...

SPIE Spline CCL

Question This routine as used for the SPIE paper on OSLO splines to create ABC spline data from a sag table. Synopsis SPIE Spline CCL Symptoms Groot

Targeting real ray based EFL in optimization

Question I have a situation where my lens has a 2nd order aspheric term on an optical surface. The paraxial PU curvature solves and the paraxial EFL that OSLO calculates (by default) does not include this aspheric term. How can I target a real-ray based EFL for my...

Troubleshooting the hardware key

Question “I have a license for OSLO that allows multiple installations with one user at a time using the hardware key. I have just installed it on a new machine, and received the following error message: “Your Access Number does not match your ID...

Turning graphics scale bar off

Question I want to temporarily turn the graphics scale bar off in some of my graphics drawings. When I set the OSLO preference “graphics_labels” to be “off” using either: set_preference graphics_labels off; or, stp glab off; the graphics scale...

Tying variables together in a multi-configuration (zoom) system

Question I have a zoom system where I want a certain surface parameter to be zoomed in all configurations. However, in some configurations, I want the variables to be tied together (equivalent to each other), and in others I want them to vary independently. How do I...

UltraEdit does not retain license info when running Vista

Question I am trying to run UltraEdit 8.0 on Vista. It prompts me to enter the license info, and I enter it, and then it prompts to exit and restart the program. After the restart, it prompts for the license info again …. what can I do to get it working?...

Updating the Private Lens Database

Question How do I add new lenses to my Private Lens Database? Synopsis Updating the Private Lens Database Solution In addition to the traditional ” Open Lens” dialog box, it is possible to easily browse through the Public Lens Library shipped with OSLO,...

User ray trace surface option not allowed for surface 1

Question “The ” User Surface(U)>> User Ray Trace” option does not appear as an option in the SPECIAL column popup list for surface 1 in the Surface Data Spreadsheet. This appears to be the case for all lenses. Why?” Synopsis User ray...

Using a custom operand set

Question I have a set of “base” operands I would like to import to other lens files. Since “copy” and “paste” do not work in Operands Data Editor between two lens files, how do I import my operand set to other lens files? Synopsis...

Using Gradium materials after a reflecting surface

Question “I am using a Gradium gradient index material (from Lightpath Technologies) in my system. When I use it in a regular way, it works fine. However, when I ” invert” it so that I can insert a mirror before it, it doesn’t appear to work...

Using macro editing modes in OSLO (CCL and SCP)

Question I am having trouble creating an ABC spline surface in OSLO. Once I indicate that I want to create an ABC spline surface of 30 points, OSLO stops my CCL routine and tells me there is an error because all my ABC x,y, and z data points are still zero. How do I...

Using multilayer coatings in OSLO

Question I want to model multilayer coatings. Can I model multilayer coatings in OSLO? How do I do it? Can I model multilayer coatings if I just have the transmission or reflection curve? Can I optimize on multilayer coatings in OSLO? Synopsis Using multilayer...

Using OSLO for interferometry

Question Is it possible to use OSLO for designing interferometers? Synopsis Using OSLO for interferometry Solution In an interferometer, the user designs two different optical paths or “arms” of the system. This is easily done by creating two...

Using OSLO, TracePro or RayViz with Remote Desktop

Question I have succeeded in getting Microsoft’s Remote Desktop working on my home computer so that I can access my work computer remotely. But I am having trouble using software from Lambda Research with this system. What can I do to get your software to work with...

Using TEM command in multi-configurations

Question I want to analyze my lens at different temperatures. I understand that one of the ways to do this is to define the lens as having more than one configuration and change the temperature in different configurations. But in the multi-configuration editor, the...

Using the status bar to show the results if user calculations

Question I want to use the status bar to show the result of a special calculation that I create. How can I do this? Will the status bar be updated on a continuous basis? Synopsis Using the status bar to show the results if user calculations Symptoms This is certainly...

Variables insertion, distortion, and relative illumination

Question 1) About variables insertion, before optimizing: how can you define the distance between image and object and say for instance that it should be 27mm? 2) Variables: how can you insert distortion among certain values? 3) Where are indications about...

What is a reference raytrace failure and how to correct it

Question When I’m optimizing or performing an analysis on a lens, I sometimes get an error message that indicates: Warning: reference ray trace failed. What is the problem? How do I correct it?” Synopsis What is a reference raytrace failure and how to...

Wheel mouse not functioning properly in the Surface Data Spreadsheet

Question I notice that if I use my IntelliPoint wheel mouse to roll up and down on any of the spreadsheets in OSLO, it works in only one direction. After I hit the bottom of the spreadsheet, the mouse wheel works for rolling up only. If I have too many element groups...

XMT Plots transmission as a function of field (CCL)

Question This record is outdated. It has been superceded by record #445 XMT Plots the fall in transmission as a function of relative object height arising from vignetting. It illustrates how a custom error handler prevents reference ray failures terminating execution...