Hi all,I have been using ZOS-API Pythonnet to perform a ray trace and save the ray trace data as text files. The following program snippet worked perfectly fine up until a few months ago. Now, when I run the same code, it does the ray trace and saves the text file without changing any of the settings.import ZOSAPI;TheSystem = TheApplication.PrimarySystem;teleFile=('T_file.zmx')TheSystem.LoadFile(teleFile,False);Systemdata=TheSystem.SystemDataTheAnalyses=TheSystem.Analyses;X, Y = np.round(np.mgrid[(-1):(1):100j, (-1):(1):100j],3)positions = np.vstack([X.ravel(), Y.ravel()])pos=np.transpose(positions)px=pos[:,0]py=pos[:,1]max_rays=len(px)newWin=TheAnalyses.New_Analysis(ZOSAPI.Analysis.AnalysisIDM.RayTrace);newWin_Settings=newWin.GetSettings();Field_1 = Systemdata.Fields.GetField(1)Field_1.X=0Field_1.Y=0path='\RT_trial'for i in range(max_rays): newWin_Settings.Px=px[i]; newWin_Settings.Py=py[i]; #newWin_Settings.Wavelength.SetWavelengthNumber(1); #newWin_Settings.Field.SetFiel
Hey Zemax Team,Thank you for adding the Pan-Dao export feature. This will be a very useful feature, but unfortunately it is not yet ready for prime time. My suggestion would be to move it to Feature Experiments, so suitably motivated users can beta (alpha?) test it. At the moment is appears as a full feature in the UI, and it has a long way to go before it is ready for that.Please take the following as constructive criticism :-) Also remember that I am much more willing to dig into a new feature than you should assume a typical user will be. I actually enjoy this kind of stuff, and do not have a bunch of real work to be getting on with.1. So first of all I loaded the double Gauss and excitedly hit the button, and got a message saying that I needed to provide 'inputs' for surface tolerances in the Tolerance Wizard. OK, maybe I should have known that...bad user. But if it needs the Tolerance Editor to work, the feature should be in the Tolerance menu alongside the Cost Estimator, in the
Hello everybody,I'm facing a color rendering problem on a rather complex electro-mechanical system, where I have several lights with different colors. Having to evaluate the light pollution of some details, I would need a rendering like the one generated by the color detector but with infinite focus or shaped according to the surface in question. I can't use the detector polar because it doesn't satisfy the geometric needs of the system. Do you have any idea about it?Thanks
I notice these are “Reload Surface” and “Reload All Surfaces” tools on the top of the LDE window. Does anyone know how do we access this tool in Matlab API? I did not find such a function in ZOS-API. One similar function is “Reload Object” but it doesn’t work for “Reload Surface”.The reason why I need this function is I am simulating gradient index lenses whose property is read from an external file named “GRADIENT_9.DAT”. After I change the material property in this external “.DAT” file, I need to Reload All Surfaces to update the material.If anyone has suggestions on how to do this, I would appreciate it a lot.
Hello Zemax team,My question is regarding an error I met when I use a lens black box from lens vendor. As the screenshot below, I have tried to put the object to 1 meter away in front of the lens by adjusting the surface 1 thickness. However, an error as “cannit determine object coordinates” shows up once entered. How to fix this error or what’s the proper method to change the object distance at the black box? Thanks.
Hi,I created some absorption and emission spectra using the ‘Create Spectrum File’ button in the libraries tab. They both plot fine, they are simple flat spectra. However, in the ‘Volume Physics’ section of the non-sequential component editor these spectra do not appear in the list of files in their respective drop downs. Initially only one of them did, then I restarted OpticStudio and it then didn’t appear anymore.Cheers,Josh
Hi again Zemax peeps,I’m a little confused about the announcement on the Geometric MTF calculation in NSC mode. Has anything changed in the feature? It’s been in the code for ages.I’m confused because Geometric MTF is still available in the Detector viewer, but it computes as 1 for all spatial frequencies. Is this a bug or a feature? Are NSDD data items -14 and -15 (x and y MTF at specified spatial frequency) affected? Do they return the actual MTF or just 1?
Hi Zemax Community,Can you help me with this? I have read the passagehttps://support.zemax.com/hc/ja/articles/1500005580162-%E5%85%A5%E9%96%80%E3%82%AC%E3%82%A4%E3%83%89-1-4-%E6%AD%A3%E8%A6%8F%E5%8C%96%E5%BA%A7%E6%A8%99%E7%B3%BB and want to confirm that my understanding is right. Things want to doTo trace the specified field & wavelength light ray location on the image surface. here are wave1 and wave2 at field1 (my model is a spectrometer) I use REAY in merit function and set the wave1 and wave2 coordinate as below but I am not sure whether it is right , could you please help me see it ? Thanks Yang
Hi ,I am tryting to install Zemax OpticStudio on my laptop.The engineer who used Zemax left the company 2 years ago and the black usb is still plugged to the Keyserver.I have edited the sntlconfig.xml.bak file with correct ip address of the keyserverWhen I clieck on the Icon on my desktop for Zemax OpticStudio I have a window to inputPlease enter License Number Please enter your Activation codeI have a long number:1XXX 2XXX 7XXX 4XXX 3XXX 5XXXXX 0XXXXXand also 5 -user network Serial Number 2XXXXI am not sure which one is the License Number and which one is the Activation CodeAny help will be much appreciatedThanksAbhi
Hello,I understand that the STAR module operates within sequential mode, but can anyone confirm that it will never work within mixed-mode as well? I have a Non-Sequential Component representing a segmented mirror, which is comprised of several Standard Surface Object Types with different user defined apertures (the mirror segments have different shapes). Is there a way to apply a FEA file to these “nested” Standard Surfaces? Thank you,Vince
Hello,I was wondering if there was a way within OpticStudio to label component distances in the NSC3D layout. The layout window has a measure tool, but it requires me to draw the line which would lead to the measurement being inaccurate. Is there a way to extract the measurement data from the non-sequential component editor?Thank you,Mus’ab
Hi all,I would like to ask how can we cut the system by half? For example, we have a three mirror anastigmat (TMA) reflective telescope system, and it is for on-axis design. Please see the example picture below. Now I would like to convert it to a off-axis design, I think the easiest starting point could be scaling up the system by a factor of 2, and then cut the system by half along the optical axis, so that the off-axis TMA geometry can be obtained. But I don’t know how to process the cutting in Zemax or if anyone has a better way to convert on-axis to off-axis?I also attached a Zemax file for Hubble telescope made by 2 on-axis mirrors for anyone if want to show me the example to cut the system by half along the optical axis?Thank you so much guys! -- Kaden
How to set a model for imaging at two object planes and form images on one image plane but two virtual images
Recently, many research and development are on multi focal plane image for head up display.It needs to build an optical model to simulate the case below:There are two object planes (usually two optical paths); Need to for images on one image plane (eye box) form two or more virtual images in front of a car.Usually, the sequential lens editor of zemax opticstudio is set for modeling a system with one object plane and one image plane. Could you any experienced staff tell me how to set such a model for simulating multifocal virtual imaging of Head up display.Thank you!
Hi,I have some strange behaviour with Zemax and tolerancing :To simulate a NOA cement on a doublet and test a identical tilt on the two surface near the cement I use irregular surfaces. I tried to simulate the adding of irregularity on this two surfaces, and use the “SAVE” operands in tolerance data editor to save the result.When I analyse the Zemax files created there is no change in the case of the min tolerance while the column for the "Spherical" and the "Astigmatism" are well changed in the case of the max tolerance. I don’t understand while there is no change in the case of min tolerance.PS: There is no longer the possibility to open new tickets for bugs? When I click on the button In my account web page, I am redirected to the knowlegdebase!MD
Dear All, The goal is to design a projection system using multi lens array (3x3) system. In this system ,for each lens there are separate sets of field. Each lens (of multi lens array) form an image at a fixed projection distance.I’d like to analyze and simulate all overlapping images on one single image plane. What will be the quality of combined image after overlapping. How we can model this in sequential mode in Zemax opticstudioPlease comment and share your thoughts.Thanks,
On the RMS vs Wavelength and RMS vs Focus plots, fields are not labeled as fields, nor are their X,Y values shown. The only mention is down in the title block. The check boxes are there but there is no labeling whatsoever. Please add field labeling to the RMS vs Wavelength and RMS vs Focus plots.Mike
I would like to know how the relative illumination graph is drawn in Zemax.If you can answer the following two questions during the process of drawing the RI graph, the rest of the process will be deducible.1. What spec of Light Source does zemax use?In general, renderer's light has various specs such as Infinity Area Light and Point Light.2. Can you tell me how to get the energy of the final potons that reached the Image Plane of zmax?For example, is it calculated as I (x,y,λ) at the bottom right on page 2 of the paper below?https://web.stanford.edu/~jefarrel/Publications/2010s/2012AppliedOptics.pdf
Hi , I am currently trying to use python (Spyder) to connect with Zemax. But I am getting the errors below (shown in the picture below) . I can’t find any solution. I tried to use another python version - 3.7.0 , but still same error. Both standalone application and interactive extension result in same error messages. Appreciate if anyone could give me some guidance. Thank you
Hello,I am trying to export a model from OpticStudio to CAD including rays, but unfortunately in Solid Edge I do not see the rays. I have found this article in the knowledgebase: How to show exported rays in the CAD platform – Knowledgebase (zemax.com), but it does not cover Solid Edge. Does anyone know the trick to be able to see the rays in Solid Edge?
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.