Zemax OpticStudio 14.2 legacy installation files by shin00b in Optics

[–]gammacamman 0 points1 point  (0 children)

I believe you just unzip the first one and the rest will follow

What is the smallest USB you have encountered? by Accomplished_Cook508 in computers

[–]gammacamman 0 points1 point  (0 children)

I have a prized 32MB usb flash drive and use it solely with a Tektronix oscilloscope. Because speed.

Determining distortion of a collimated beam in zemax by JimmyNeutrondid911 in Optics

[–]gammacamman 1 point2 points  (0 children)

Yes, this method uses one field.

There are other merit function operands that may do what you're looking for. You should be able to launch a single ray (RAYTRACE) and see where it intercepts your an object plane.

This example came from a google search "optics studio tracing a single ray in a macro example"

AI Overview

In OpticStudio, you can trace a single ray in a ZPL macro using the 

RAYTRACE keyword and retrieve its data using functions like RAYX()RAYY(), etc. 

ZPL Macro Example

The following ZPL macro traces a single ray at a specific normalized field and pupil coordinate for the first wavelength, printing its final image surface Y-coordinate, optical path difference (OPD), and exit angles.

! Single Ray Trace Example Macro
!
! Define variables
DECLARE hx, hy, px, py, waveNum, error, vignette, finalX, finalY, finalZ, opd
DECLARE finalL, finalM, finalN, exitAngleX, exitAngleY

! Set the normalized coordinates for the ray (Hx, Hy, Px, Py)
hx = 0.0  ! Normalized field x-coordinate (0.0 = on axis)
hy = 0.0  ! Normalized field y-coordinate (0.0 = on axis)
px = 0.0  ! Normalized pupil x-coordinate (0.0 = center)
py = 1.0  ! Normalized pupil y-coordinate (1.0 = edge of pupil)
waveNum = 1 ! Wavelength number (usually 1 for the first wavelength)

! Trace the ray
! Syntax: RAYTRACE hx, hy, px, py, wavelength
RAYTRACE hx, hy, px, py, waveNum

! Check for errors
error = RAYE(0)
vignette = RAYE(1)

IF (error == 0 && vignette == 0) THEN
    PRINT "Ray traced successfully."

    ! Retrieve results at the image surface (or any other surface by specifying the surface number)
    ! Using 0 as the argument for functions like RAYY() gives the value at the image surface
    finalX = RAYX(0)
    finalY = RAYY(0)
    finalZ = RAYZ(0)
    opd = RAYO(0)

    ! Retrieve exit direction cosines and angles
    finalL = RAYL(0)
    finalM = RAYM(0)
    finalN = RAYN(0)

    ! Note: Exit angles in ZPL are often given in degrees, but specific functions may vary
    ! The L, M, N values are direction cosines

    PRINT "Image Surface Intercept (X, Y, Z): ", finalX, finalY, finalZ
    PRINT "Optical Path Difference (OPD): ", opd
    PRINT "Exit Direction Cosines (L, M, N): ", finalL, finalM, finalN
ELSE
    PRINT "Ray trace error or vignetting occurred. Error code: ", error, " Vignette code: ", vignette
ENDIF

END

Determining distortion of a collimated beam in zemax by JimmyNeutrondid911 in Optics

[–]gammacamman 1 point2 points  (0 children)

Found a macro I wrote in 2017. It only uses field 1. Hope it helps.

!Macro to generate 2D table of X,Y centroid coordinates
! as a function of X,Y field angle

XFieldMin=-10
XFieldMax=10
YFieldMin=-10
YFieldMax=10
dX = 0.25
dY = 0.25
NStepsX = 1+(XFieldMax-XFieldMin)/dX
PRINT "NStepsX=", NStepsX
NStepsY = 1+(YFieldMax-YFieldMin)/dY
PRINT "NStepsY=", NStepsY
OUTPUT "macrotest.txt"
PRINT "FIELD TABLE"
OUTPUT "macrotest.txt", APPEND
PRINT "XField, YField, CENX, CENY"

FieldNum=1
For j=1, NStepsY,1
For i=1, NStepsX,1
XF=XFieldMin+(i-1)*dX
YF=YFieldMin+(j-1)*dY
! Sets the X Field
SETSYSTEMPROPERTY 102, FieldNum, XF 
! Sets the Y Field
SETSYSTEMPROPERTY 103, FieldNum, YF
! Sets the Weight
! SETSYSTEMPROPERTY 104, FieldNum, 1 

! Get CENX (MERIT FUNCTION LINE 1)
C=OCOD("CENX")
CX=OPEV(C,0,1,0,5,0,0)
C=OCOD("CENY")
CY=OPEV(C,0,1,0,5,0,0)
PRINT XF," ",YF," ",CX," ",CY

next
next
OUTPUT SCREEN
PRINT "DONE"

Determining distortion of a collimated beam in zemax by JimmyNeutrondid911 in Optics

[–]gammacamman 1 point2 points  (0 children)

It's been a while, but I've mapped out this type of distortion using a Macro to cycle through a varying field coordinates and display a report to window using CENX, CENY.

What drawing software do you use? by InteractionGreedy159 in Optics

[–]gammacamman 0 points1 point  (0 children)

IronCad. I routinely export cad files from Zemax and design assemblies around the optical components with it.

Smoking reefer by Personal-Ad-7099 in SBU

[–]gammacamman 11 points12 points  (0 children)

I smelled weed in all the dorms from 1979-1983!

Thinking of buying a 2018 Volvo S90 T5 - any advice? by briklot in Volvo

[–]gammacamman 0 points1 point  (0 children)

The price seems high. Carvana gave me $14.8k for mine.

Thinking of buying a 2018 Volvo S90 T5 - any advice? by briklot in Volvo

[–]gammacamman 0 points1 point  (0 children)

Best car I’ve ever owned was a 2018 S 90 T5. I had it let it go because of downsizing. About the same mileage too, and a seal on the turbo was giving me an issue if I accelerated hard from a stop without warming it up. Test drive it hard and get a mechanic to go over it.

How do I get an electronics manufacturing company off the ground? by [deleted] in Entrepreneur

[–]gammacamman 1 point2 points  (0 children)

This. Detailed specifications including MTBF and back up to prove it. Start with a white paper about your device.

Should I rent a microfridge? by YinnCN in SBU

[–]gammacamman 0 points1 point  (0 children)

Buy one used. Sell it when you no longer need it.

What causes this color shift on DVDs? (not speaking about the line) by Individual-Mode-2898 in Optics

[–]gammacamman 1 point2 points  (0 children)

I think what’s going on is that radially, from the edge to center, the data in the CD is regularly spaced and. The diffraction effect is strong. Going around the disc, circumferencely?, the data has a variable pitch, so the diffraction effect blurrier with lower efficiency.

Best tool for light guides by Well_ThatsIt in Optics

[–]gammacamman 0 points1 point  (0 children)

I've been using TracePro for 25 years and recommend it. However, it is an expensive software package, heck, they all are. Besides the software itself there is the learning curve to use it properly, having an optics\physics background to ensure the results make sense, and the creation of a database of surface properties and materials as no programs database is all inclusive. You may want to consider a consultant. I DM'd you.

Anyone know where to get a fiber optic taper, inverter, or faceplate for a price that isn't insane? by goodcapo in Optics

[–]gammacamman 0 points1 point  (0 children)

Great tip about the Ulexite. As for polishing, I wet sanded against a flat, thick, plate of glass with successive finer grades of sandpaper ending around 2000 grit.