Recently active topics
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.
Hi,I would like to know how to use the OCOD and OPEV operands with multi configuration files: In case the same operand is present more than once (for example for different configurations) how to read the right one?Also, I want to know if it is possible to use OCOD with mathematical operands, like MINN, or MAXX, and same question, what if there is more than one in the Merit Function?Otherwise, is there a simpler way to read one value from any line in the MF?Thanks, Cristina.
Hello,I am using Optics Studio to evaluate some FEA data of an optical component (without the STAR package). I have the deformed surfaces as grid sag surfaces and am loading them in as .dat files and setup a “gradient 4” surfaces with fitted polynomial coefficients. Is this the correct way to set up this problem? I am concerned that the grid sag surface has no thickness or material and want to be sure the model is applying the grid sag to the surfaces of my Gradient 4. I have read in the documents that dummy surfaces may be needed between these types of surfaces but when entered they make no difference. I have this set up as a multi configuration such that Flat surfaces can replace the grid sags and when toggled I do see that a change in the system performance so I know the grid sags are doing something.Would love some feedback on this setup, thanks for the help
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
There’s a “Nominal” field associated with the TCMU tolerance. With other tolerances (like TRAD), the nominal field is populated with a non-zero value but I don’t see that nominal field being populated with regard to coating layer thicknesses. Is the user expected to input each layer thickness in the “nominal” TCMU field or is that not necessary? Thanks.
Hi,I can see in the license manager that I have a valid license for OpticStudio Premium, however when I try to open OpticStudio I get the following error pop-up.“No license for OpticStudio was found. If you are attempting to run from a USB key, ensure that the key is plugged in. To activate a new Softkey, open Zemax License Manager.”This license was working for most of the day without problems, half way through ray-tracing the software closed (might have ran out of memory) and when I tried to re-open this occurred.Any advice would be greatly appreciated,Josh
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
Hey all,First question here and new user of the software (~2 months). Let me know if I have violated any rules of posting.Question: I have downloaded the following reflective fiber collimator from ThorLabs and am attempting to send collimated light ‘into’ the OAP. The downloaded lens files has collimated light entering the image plane, which I do not want.My goal is to analyze the spot size/fiber coupling efficiency of this OAP if I were send collimated light onto the OAP, with a single mode fiber at the focus. How can I go about using this lens file? How can I have an infinite-finite conjugate relationship instead of a finite-infinite?Thanks,~ Luke backup link for reflective collimator: https://www.thorlabs.com/thorproduct.cfm?partnumber=RC12SMA-P01
Update 2021-09-24This forum thread is answer some frequently asked questions about the volume hologram model in OpticStudio.In OpticStudio 21.1, we have implemented volume hologram model for these sequential surfaces: Hologram 1, Hologram 2, Toroidal Hologram, Optically Fabricated Hologram. This allows users to analyze the diffraction efficiency with give material information. More infomraiton can be found in Help file in OpticStudio 21.1 and this knowledge base article: Simulating diffraction efficiency of a volume holographic grating using Kogelnik’s method 1. Can I make the hologram with any kind of user defined shape?When we say surface shape, it could be the substrate or the aperture. Here we will talk about both.The shape of substrate only supports Standard (conic sphere), Toroidal (cylinder), Extended Polynomial (freeform) for now, but we can investigate if users request more.If more shape of substrate are needed, except sending a feature request to Zemax product team, the fast
Is there a way to access the properties of a coating in the ZOS-API? The article below shows how to access the name of the coating, but does not show how to get the properties of the coating.I’m not finding any handles that give the actual coating information. Thanks!
Hi,is there any ZOS-API or ZPL Command wich is able to switch the mode from non-sequential to sequential? I would like to switch back from non-sequential mode to sequential mode while an interactice extension connection with Matlab is running. Another idea would be open a new file in sequential mode. Is it possible to open a new file while the Matlab connection is runnig? So I dont have to open a new file and connect again. Main Target is to keep the process automated via Matlab the whole time. I dont want to use my mouse to change the mode or connect again to Matlab. In an early version it was possible to make a macro with a record function, that records my mouse-klicks. In the end I just want to activate buttons, but i dont find the matching commands in ZOS-API and ZPL. Thanks, Lukas
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
Just a very simple ZPL solve to set the incident angle of a transmissive diffraction grating to the Littrow angle for order m = -1. #Define pipi = 2*ACOS(0)x = SOSO(0) #get preceeding coord break surface numberL = WAVL(PWAV()) #get primary wavelengthG = PARM(1,x+1) #return Lines/um from grating (pg 319)Litt = asin(L*G/2)*180/pi #Calculate Littrow anglesolvereturn Litt Just thought I’d share it to potentially save others a little time.It could be expanded for additional orders.
Hi Community, Maybe I’m missing something simple, but is there an “Unhide Columns” in the MFE? In both the LDE and MFE, there is a “Hide Column” contextmenu option if you right click on a column header:In the LDE, if I then right click on a column header, there is an option to “Unhide Column” but there is not an option in the MFE:I can switch over to the Express View in the MFE to see all the columns, but without quitting OpticStudio to reset the column preferences, is there a way to show all the MFE columns in Normal View? Thanks.
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.