The education in physics and photonics does not change much in the past 20 years. Is always an instructor in front the blackboard, and derive the complex formula. Students take some notes and try their best to understand the meaning of the formula. Some instructors are good at drawing, and they can draw refractive index ellipsoid, Poincare sphere, the moving or electric and magnetic wave on the blackboard. Some students are not good at drawing, and they can not fully copy what they see on the blackboard. The lost the chance to understand the optics theory. The UNESCO programe”Active Learning in Optics and Photonics” (ALOP) urge instructor should make several inexpensive experiment and interactive ways to help student understand the conceptual idea in photonics .
Now more and more instructors began to put the software demonstration in teaching. For example, use software to demonstrate propagation of electromagnetic waves through homogeneous media . Using python to demonstrate diffraction phenomenon , or commercial software to do ray tracing optics  is the trend for teaching. Traditionally, LabVIEW is use for experiment automation, and several good instructor use it create very interesting experiment, such teaching Fresnel incoherent correlation holography  or undergraduate photonics experiment about computer controlled instrumentation and data acquisition . Those are very good example in photonics laboratory. Nevertheless, LabVIEW has very powerful user interface design ability. With a short time of learning, instructor can make 3D demonstration of polarization wave or intensity plot of the diffraction pattern.
TEACHING WITH LABVIEW VISUALIZATION
Many optics laboratories already use National Instrument LabVIEW as experimental automation software, because its graphic interface make user who is not software background can easy start their creation. Typically, LabVIEW work bench has two parts. One is front panel and the other is block diagram. Block diagram is the coding place where define the logical function or algorithm of the program. The front panel is for operation the program or user changes parameters when running the program. LabVIEW has extraordinary plot function and easily to setup user interface. It is not only useful for laboratories automatic measurement, but also suitable for use demonstrate optics phenomenon. It is very easy to build track bar or numeric input. Visualization tool such as xy-plot, 2D picture plot, intensity plot, 3D plot are also ready for use.
Optical science uses much mathematics to describe the electric and magnetic wave interact with the substance. Use software visualization has at least three merits. First, the human eyes can not recognize the polarization of the light. It is very difficult to share the idea of polarization state to students. It always depends on students’ imagination to figure out what is going on. However, polarization state is a very important characteristic in liquid crystal display (LCD). Liquid crystal changes the polarization from one polarization to another polarization. With polarizer and analyzer pairs, LCD becomes an optical valve to allow or stop the light. Besides, the relationship between polarization state and Poincare sphere sometimes confuse student. Thus, the first advantage of software visualization is making invisible phenomenon visible. Second, software can also help simulation the experiment. For example, Snell’s law describes the relationship about the incident light angle, input refractive index, transmitted light. Fabry Perrot Etalon describes the transmittance in different etalon gap and surface reflectance. For real experiment, it is possible the change the incident angle, but very hard to change the refraction index instantly. As in Fabry Perot etalon, it is impossible to change the reflectance instantly when measuring the transmittance spectrum. Hence, the second advantage is help student do virtual experiment. Finally, student is familiar with optical simulation parameters also help student build their own instrument in the future. The technology improves very rapid and some parameters of the sample can not measurement directly such as cell gap or phase retardation of the liquid crystal cell. The instrument need very sophisticated physical model to fitting the answer. Building simulation can also improve the student’s ability to compare the experiment and simulation. Before going to the laboratories, one can use simulation to do predict the experiment result. The future engineer or scientist can apply the concept of computer-aid-design (CAD) in early stage learning.
With software visualization, student can change the parameters and see the output result. After repeated operation student can build up more physical sense about the phenomenon not only equation.
OPTICS SIMULATION WITH LABVIEW
Snell’s law is the fundamental formula describes the relationship among incident angle, refractive angle, refractive index of medium. In this program, user can drag the incident angle θ1 track bar and the program will auto compute the refractive angle θ2. In the Figure 1, refraction and total internal reflection are demonstrated. The refractive index in medium 1 and medium 2 are n1 and n2, respectively. The Snell’s law is shown in the eq (1). User can change the parameters and observe what will change after the manipulation. Total internal refraction can also observe when the light incident from high refractive index medium to low refractive index medium.
Hermite-Gaussian beam transverse mode
The Gaussian beam is a solution of paraxial Helmholtz equation. It can also decompose the solution in many orthogonal higher order forms. Hermite-Gaussian is a series solution of this equation in Cartesian coordinates . The electric field of the solution is shown in eq (2) and (3). ω(z) is the spot size in z; ω0 is the spot size when z =0 λ is the wavelength of light; R(z) is the curvature in z. H1 is the Hermite polynomial of order l.n is the refractive index of medium. An alternate orthogonal higher order solution in cylindrical coordinates is so-called Laguerre-Gaussian beam. The complexity of the Hermite-Gaussian beam traverse mode make student hard to realize how the light is look like.
In this program, user can select the order of the Hermite-Gaussian beam and drag 3D plot for viewing the laser beam from different view direction. In the Figure 2, there are TEM00 and TEM11, the left part is the intensity distribution and the right part is the 3D plot of the Hermite-Gaussian beam. By visualization of the intensity distribution the, user cultivate more sense of Hermite-Gaussian beam.
Square and circular aperture diffraction
Diffraction of the light shows the wave property of the light. People think light is only a particle for a long time in history. Therefore, diffraction is a proof to show the light has the wave property. Usually after a long discussion in class, the textbook will jump out an equation to describe the phenomenon. That is Fresnel diffraction , as show in eq (4). In the beginning, user can learn two kinds of aperture and see how the aperture size affects the diffraction pattern. The smaller aperture size the larger diffraction angle. The distance between 0 order and 1 order will be wider. In the (a) (b) Figure 3, square and circular apertures are demonstrated. The left part is the aperture and the right part is diffraction. By visualization of the diffraction pattern, student can learn this phenomenon in classroom. In the future, the simulation can use different shapes of aperture or different phase plate. Student can practice the computer generated hologram phase mask, to see how hologram is work.
Polarization wave and Poincare sphere
Electric field Ex and Ey and their amplitude Ax and Ay. There are phase retardation between Ex and Ey and the retardation value is δ. The value orEx,Ey and δ can categorize these waves into linear polarization, circular polarization or elliptical polarization. The total electric wave is the combination of x and y direction field, and it is very difficult to draw a circular polarization in a blackboard. Student really needs some animation to help them construct this geometric relationship between the electric field in x, y and the combination. Another idea also hard to realize is the Poincare sphere. Diffraction polarization state can also describe on the point of the sphere. The sphere is in Cartesian coordinates with three axes s1, s2, and s3. The positive s1 axis direction is horizontal polarization, and vertical polarization is in the opposite direction of s1 axis. The positive s2 axis direction is linear polarization in 45 degree, and the opposite direction is linear polarization in 135 degree. The north pole and south pole are left hand and right hand circular polarization. In eq (6), the inverse tangent of the amplitude ratio Ay over Ax makes ψ
The azimuthal angle is 2ψ which describes the latitude where the point lies on the sphere and the retardation δ describe the angle between the point and S3 axis. With 2ψ and retardationδ, user can point out the polarizaiton state in Poincare sphere as eq. (7). The some complex idea in Poincare sphere is when the amplitude ratio is the same, and different retardation is rotate about S1 axis. Without computer visualization, it is not easy for student to understand.
Fabry-Perot etalon in spectrum domain
Fabry-Perot etalon  is the cavity cause optical resonance. We meet it on the textbook, and almost every textbook draw the interference in frequency domain. However, in industrial instrument, engineer usually measure in spectrum domain not frequency domain. We can see the transmittance spectrum or reflectance spectrum. The Fabry-Perot etalon transmittance formula is shown in eq (8).
The R1 and R2 are reflectance in etalon surface 1 and surface 2. L and λ are the length of the etalon and the wavelength of light. In the Figure 5(a), there are 1 mm etalon in mid-IR range. It is common when anti-reflection coating is good enough on LCOS-based WSS (wavelength selective switch). We can see the reflectance is 4 % and induce the ripple in spectrum. In the Figure 5(b), we choose etalon near 3 μm which is the typical cell gap for liquid crystal display. Some researcher even uses the spectrum to measure the empty cell gap . In this program, center wavelength and reflectance are needed parameters. Another impartment parameter is the number of modes. It decides how many peaks shown in the spectrum.
In this paper, five photonics phenomenon had been discussed in software visualization and simulation with LabVIEW. It will be very helpful for user to learn a new idea with interactive software. The Snell’s law simulation make user understand the relation among incident angle, refractive angle and refractive. The Hermite-Gaussian beam visualizes the complex mathematic formula of the electric distribution. The aperture diffraction can let user test different how different aperture size affect the diffraction pattern. The polarization wave visualization shows how electric wave look like in different amplitude and phase retardation and also connects its relation in Poincare sphere. The program points out where the polarization state lies on the Poincare sphere. The Fabry Perot etalon in wavelength spectrum demonstrate the ripple in spectrum in different.
Teachers can use software to enforce the insufficient in traditional lecture, and improve the interest of students. Students can learn through interactive software. They can also see difficult physical phenomenon in front of them. The biggest advantage of the software demonstration is the low cost, and can ensure that the phenomenon displayed properly in a short time. Experimental skill is very important, but in a limited educational environment, interactive software simulation may be a compromise way for learning these physical phenomena.
Alarcon, M., Lakhdar, Z. B., Culaba, I., Lahmar, S., Lakshminarayanan, V., Mazzolini, A., Niemela, J.“ Active learning in optics and photonics (ALOP): a model for teacher training and professional development” Optics Education and Outreach 7783, 778303 (2010) https://doi.org/10.1117/12.860708Google Scholar
Diaz, A., Friedmana, J. S., Lucianoa, S., Martineza, S., Hernandez, A., de Jesus, J., Molina, N., Ramos, J. G., Casañas, A. and Maldonado, P. M. “Propagation of Electromagnetic Waves through Homogeneous Media” International Topical Meeting on Education & Training in Optics an Photonics 9793, 97930I (2015)Google Scholar
Ammar, A., Burman, R., Ghalila, H., Lakhdar, Z. B., Srinivasa, L., Varadharajan, Lahmar, S.and Lakshminarayanan, V. “Optics simulations with Python: Diffraction” International Topical Meeting on Education & Training in Optics an Photonics 9793, 97930K (2015)Google Scholar
Gerhard, C., Adams, G. “Easy-to-use software tools for teaching the basics, design and applications of optical components and systems” International Topical Meeting on Education & Training in Optics an Photonics 9793, 97930N (2015)Google Scholar
Wan, Y., Man, T., Tao, S. “Optics and Optics-based Technologies Education With the Benefit of LabVIEW” International Topical Meeting on Education & Training in Optics an Photonics 9793, 97931O (2015)Google Scholar
Marques, M. B., Rosa, C. C., Marques, P. V. S. “Eight year experience in open ended instrumentation laboratory” International Topical Meeting on Education & Training in Optics an Photonics 9793, 979327 (2015)Google Scholar
Wan, Y., Man, T., Tao, S. “Optics and Optics-based Technologies Education With the Benefit of LabVIEW” International Topical Meeting on Education & Training in Optics an Photonics 9793, 97931O(2015)Google Scholar
Yariv, A. and Yeh, P. [Photonics: Optical Electronics in Modern Communicationsptical electronics in modern communications], Oxford University Press, 88–89 (2007).Google Scholar
Goodman, J.W. [Fourier Optics], Roberts &Compnay, 66–67 (2005)Google Scholar
Yeh, P., Gu, C [Optics of Liquid Crystal Displays], 64–67 (2010)Google Scholar
Yariv, A. and Yeh, P. [Photonics: Optical Electronics in Modern Communicationsptical electronics in modern communications], Oxford University Press, 166–167 (2007).Google Scholar