Optical

Optical

Topics relate to SPEOS, VRXPERIENCE and Optical Measurement Devices

Light transmission of a system

    • Xime54
      Subscriber

      Hi every body, 

      In order to know the light transmission of an optical system (very simple), I created a source, the sytem, and a receptor. I want to compare irradiance recieved by the receptor while the light is going through the system, and directly to the receptor without the system. But I don't know how to get those information.

       

      Here i my simple system:

      Here the result in one map:

       

      How can I extract irradiance for the whole spectrum to get the transmission curve of my system?

       

      Thanks!

       

      Maxime

    • Stefan Thoene
      Subscriber

       

       

       

       

      Hi Maxime, you can use the spectral seperation to get the irradiance values per nm with this value you can extract the actual spectral dependencies.

       

      you can also use python to actually extract these spectral dependencies quickly:

      from win32com.client import Dispatch
      file =r"D:\Work\OMS4\testabsorbing\test.xmp"
      x_pos = 0.0
      y_pos = 0.0
      width = 10.0
      height = 10.0
      VPL=Dispatch("XMPViewer.Application")
      VPL.OpenFile(file)
      w_nb=VPL.SpectralGetNbWavelength
      w_min=VPL.WMin
      w_max=VPL.WMax
      wavelength=[]
      energy=[]
      signal=[wavelength, energy]
      for i, WL in enumerate(range(int(w_min), int(w_max), int((w_max - w_min) / (w_nb - 1)))):
          signal[0].append(WL)
          VPL.SpectralSetActiveWavelength(i)
          signal[1].append(float(VPL.SurfaceRectangleCalculation(x_pos, y_pos, width, height)[6]))

       

       

       

       

    • Xime54
      Subscriber

      Hi Stephan, 

      Sorry for my late answer. I want to extract the whole information in one time, so the 1st method is not idal.

      It seems the 2nd method could be nice, but I am far to be a pytyon expert, and when I run your scipt on my computer, it crashes a the first line: "no module nmae win32com.client".

       

      Thank you

       

      Maxime

Viewing 2 reply threads
  • You must be logged in to reply to this topic.