I would like to loop over array variables and compute analysis results and store in a CSV file.Example: I would like to loop over 4 field points and compute MTF and store the results in a CSV file. Where, Column 1 = Frequency, Column 2 = Field 1 results, Column 3 = Field 2 results and so on. How can I append results for the different fields points as defined in the ARRAY?ARRAY= [1, 2, 3, 4]FOREACH VARIABLE IN ARRAY FOR i = 0, 180, 10 ! Define variables freq = i wave = 1 field = VARIABLE sampling = 1 vector = 1 type = 1 GETMTF freq, wave, field, sampling, vector, type FORMAT 10.7 OUTPUT log_filename$, append ! PRINT i, “,”, “vec1(0), “,”, vec1(1) # append results for the different fields as defined in the array OUTPUT screen NEXTThanks
Hi!I am getting a very strange error while trying to insert detector rectangles while using Zemax in Non Sequential Mode. I am working with CAD objects, but as soon as I try to insert simple detectors, the raw gets highlighted with a strange red box:This can happen also with the other objects from time to time:Zemax stops working and I have to force quitting the software. When I reopen Zemax I get these two errors:Does anybody know why this happens?I thought it was because of the big cad files, so I tried to insert only simple detectors: Unfurtunately I get the same behavior and I have to quit Zemax.I thank you in advance for your help!CheersmGiulia.
Hi,Working with NSC, I want to create a 2D source array where the surface normal of each source intersects at the same location (or be able to be changed manually).There is the option to create an array in the properties of the NSC editor, however there is no option to rotate the source individually in the array.I have attached pictures of what I am hoping to achieve. Is there a way to generate this 2D array?Thank you for reading!
POP question: how to set up POP if waist X and Y are in different location as well as different size?
Hi,I did laser beam measurement and knew waist X and waist Y, and their corresponding locations W.R.T laser port, just want to discuss with you what is the best way to set it up in POP. what I did is to use Astigmatism Gaussian.Since the 1st surface is x-waist, the waist position X is 0.and waist position Y is 148 since Y waist is at 148 to the right of 1st surface - X waist.Does this sound reasonable to you? I am a new user with POP, any suggestions and advice are appreciated!Thanks! Regards,Ying
Hello. I want information about how to create and optimizate a projection system with two or three lenses. Every time I try to use one model already done I can not find a good solution (I am a begginer), each parameter I modify the merit function is not computable or the result have a big RMS spot size. I would like to have a document which creates the lens from zero and explainning all the steps. Thanks
Hi,I am learning the POP. For the fast lens example in the link below, after we use the merit function editor to calculate the sampling (3.8e+4) required to adequately sample the phase change, what is the next step? the highest sampling in the setting we can reach is 1.6e+4, and I still cannot get a smooth phase on surface 3. please help.Using Physical Optics Propagation (POP), Part 3: Inspecting the beam phases – Knowledgebase (zemax.com) Thanks,Ying
本文章介紹了： Field Curvature/Distortion分析的文字區塊中Distortion Focal Length的定義 使用Single Ray Trace驗證 介紹用ZPL中的PLOT、RAYTRACE指令 用ZPL簡單的驗證Distortion Focal Length的定義文章發布時間：September 23, 2015 系統分析功能中的Distortion Focal Length當我們在OpticStudio中打開Field Curvature/Distortion分析功能時，會在文字區塊中看到這個參數，有些使用者會好奇這是什麼參數，為什麼他與狀態列上的有效焦距EFFL不同。請開啟範例檔：\Zemax\Samples\Sequential\Objectives\Double Gauss 28 degree field.zmx請開啟Analyze Ribbon > Aberration > Field Curvature and Distortion，並記得在Settings中設定使用主波長2，也就是0.587 um。（這是為了與之後我們撰寫ZPL時使用相同的波長驗證）點擊一下視窗下方的Text標籤，並找到如下的Distortion focal length參數。 可以很輕易的發現他與整個主視窗下方的狀態列上的EFFL數值不同。 什麼是Distortion Focal Length要瞭解Distortion Focal Length，首先我們先查看Help檔案。 根據上面反白的文字，系統會先追跡小視場，然後其他較大視場的入射光線再根據Yref=f*TAN(theta)放大。其中f就是在小視場下計算的，我們可以用追跡工具Single Ray Trace簡單的驗證： (請注意波長為2)由於此範例最大視場為14度，因此Hy = 0.0001代表0.0014度，Px = Py = 0代表chief ray，可看到第7個面的像高為2.4271401744E-003。我們把公式轉換為f = Yref / TAN(theta) = 2.4271401744E-003 / TAN(0.0014 degree) = 99.3320630可發現與Field Curvature/Distortion分析功能文字區塊
簡介光學低通濾波器 (optical low-pass filter, OLPF) 廣泛應用於高階成像系統中，通常放置在CCD或COMS的前方。主要的功能是過濾影像中特定的空間頻率，避免因為空間頻率跟感測器取樣頻率過於接近時，因為發生混疊 (Aliasing) 而造成摩爾紋 (Moiré)。解決這種問題可能的做法有好幾種，目前最為符合量產可行性的常見作法之一就是利用雙折射晶體把光路分裂，透過控制分裂距離，來消除特定的空間頻率。經過光學低通濾波器處理系統，反應在MTF上的效果就是特定頻率的對比會下降，如同我們使用IR-CUT削去紅色波長一樣，OLPF也可以過濾不希望出現的空間頻率。建立雙折射晶體這邊我們打開內建範例： \Documents\Zemax\Samples\Sequential\Objectives\Double Gauss 28 degree field.zmx我們將會在像面 (IMAGE) 之前建立光學低通濾波器的結構，示意圖如下： 要建立這個結構，我們在LDE中新增五個面，並設定如下： Surface 12: Birefringent InThickness: 0.1Material: CALCITEY-cosine: 1Z-cosine: 1Surface 13: Birefringent OutThickness: 0.1Surface 14: Jones MatrixThickness: 0.1A (real, image) = (1, 1)B (real, image) = (1, -1)C (real, image) = (1, -1)D (real, image) = (1, 1)Surface 15: Birefringent InThickness: 0.1X-cosine: 1Z-cosine: 1Surface 16: Birefringent OutThickness: 0.1由於在像面之前加上幾片玻璃，我們需要重新對焦，因此這裡打開Quick Adjust，調整透鏡最後一個面的厚度，如下： 最後打開多重組態編輯器，並設定如下。 由於在序列模式中我們無法讓光線分裂，因此要模擬雙折射分裂，必須使用多重組態來模擬。每個雙折射晶體都會依據偏振方向分裂為兩個光路，兩個雙折射晶體共會有4個組合，關於雙折射晶體的設定與模擬方式請參考Help文
簡介在本知識庫中的 “如何進行序列模式公差分析” 這篇文章中，我們簡單說明了RSS的計算方式如下：在所有公差單獨計算之後，OpticStudio可以計算各種不同的統計資料，其中最重要的就是 "Estimated Change" 以及 “Estimated Performance” (本範例中為Estimated RMS Wavefront)。Zemax使用RSS (Root Sum Square) 方法來計算品質的Estimated Change。對於每一個公差操作數，相對於原始設計的評價標準改變量之計算方法是最大與最小公差的評價標準改變各自平方，然後再取平均。最大與最小值之所以取平均是因為它們不可能同時發生，如果相加的話會導致過分悲觀的預測。我們將用公差統計中的堆疊問題 (Stack Up) 說明 RSS 的計算。堆疊問題問題的描述是這樣的：想像我們有5個木板要疊在一起，並需要估計疊在一起的總厚度。已知每一片木板的厚度都有些許不同 (現實世界總是會有誤差！)，每片木板的厚度大約在25 mm加減0.1 mm的範圍內隨機分布。假設這些木板的厚度機率是常態分布，中心是25 mm，機率最大，25.1 mm跟24.9 mm的機率則是e^-2，剛好會是距離中心兩倍標準差 (sigma) 的位置，畫出來如下圖。 好，所以現在問題是，如果我們疊了5塊木板以後，厚度的機率分布會變成怎樣？ 答案是125 mm加減0.224 mm。並且也會是常態分佈。以125作為中心，125.224與124.776的位置發生機率恰好是e^-2。換句話說，整個系統的總厚度：1. 也是常態分佈。2. 常態分佈中心剛好是每塊木板的各自機率分佈的中心的總合：5+5+5+5+5=125。3. 整個系統常態分佈機率為e^-2的地方，會是每塊木板各自常態分佈為e^-2時的偏差值 (deviation) 各自平方後、再加總、再開根號，也就是所謂的Root Sum Square (RSS)，你可以在Excel中輸入這右邊這串計算來驗證：sqrt(0.1^2+0.1^2+0.1^2+0.1^2+0.1^2)。答案正是0.224。詳細的證明可以參考Wiki的說明：https://en.wikipedia.org/wiki/Sum_of_normally_distributed_random_variables解讀與假設看
Hi all, For a set of collimating lens that I designed I got good enough MTF but the image is out of focus:- What can be the reason for this phenomenon?-Furthermore, changing the refractive index from “fixed” to “mode” casue a degradation of the mtf!what happend here? Thanks,Nadav
In a NSC System I have placed a Hologram Surface inside a rectangular volume with an index of 1.5.n1, n2 and n are set to 1.5. XYZ Coordinates are set to incomming and outcomming beam is 30° to get a reflective grating.Sending a beam under matching angele so that it hits the hlogram surface at 30° leads to the expected reflected beam inside the medium.Switching Split Rays on gives a reflected and a transmitted zero Order beam as expected.All fine so far! Changing the XYZ Coordinates for the outcomming beam to a value beyond TIR (for example 50°) without splitting everything stays as expected the beam is deflected under 50° and than total reflected at the rectangular volume surface.Switching Split Rays now on gives a “geometry error”Using Hologram Lens with fitting material instead leads to the same problem. Is there a way to use ray splitting with Holograms using large angles inside refractive media? BestSteffen
Imagine that you are given two cameras and no information about them are given. However, you have all the technical tools in hand to compare their images and find whether their performances are the same or not. To simplify the problem, both cameras image a USAF-1951 chart. Question isWhat factors should be considered to verify two cameras are identical?I would say their Modulation Transfer Function across the object and for all wavelengths are enough for this comparison. Am I right?p.s. Let's assume that we only care about the image quality at the same imaging condition like same iso, same f#, etc. given that we have access to all these settings and cameras are not defective (sensor performance is ideal and not bad pixels). Thanks
Please can someone at Zemax stop Universal Plots doing an unnecessary recalculation when you switch between the Graph tab and the Text tab. Universal Plots are used for carrying out multiple calculations and some of mine take a long time to generate. Zemax shouldn’t need to do a recalculation to show you the values it used to generate the graph when you select the Text tab, after all nothing has changed. It is just a waste of my time waiting 15 minutes or more just to access the data values.
Hi,I downloaded a simple lens (LA7270-E4, Thorlabs) zemax files, and I don’t understand the focal plane and principle plane locations in image space as shown in the prescription, I think they are opposite.Image attached. Please let me know your thoughts. Thanks,Ying
Hi I’m senior in InHa university.I want to make a head light which uses laser diode.So I made this model, and I want my laser diode to be scattered. So I made a lens which functions as scatterer.But how can I GET THIS LENS TO FUNCTION AS A SCATTER-ER? Always- thank you for your support.
Dear experts, I’m designing a mode-matching telescope that uses only a concave and convex mirror. I have two questions about handling the gaussian beam in zemax. 1. The too large waist size and waist location deviationCurrently, I’m using skew-ray gaussian beam analysis and POP coupling to check the design. My design has ~3 degrees of incident angle to the mirror, so astigmatism of the gaussian beam occurs. But deviation of waist location is too large than expected in skew Gaussian beam analysis. in ray transfer matrix analysis, astigmatism of the curved surface is described like this. Image from wikipedia “Ray transfer matrix analysis”COS(3degree) is about 0.9986…~1 so I think the incident angle of my telescope will make small amounts of gaussian defocus. but zemax skew analysis shows ~40mm of waist position displacement. I can't tell if I made an error in optical theory or if I made a mistake in the initial setting of the simulation of the zemax program. Changes in Gaussian beams i
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.