繁體 简体

Q&A: Wavelength error in ProSource generated Ray Files

Question
I recently downloaded a TracePro Ray File from an LED manufacturer, and when I insert the File Source into the TracePro model, the wavelengths are incorrect. How can this be corrected?

Synopsis
Wavelength error in ProSource generated Ray Files

Symptoms
Many manufacturers make TracePro ray files available from their websites. Many of these rays files originated from source measurements made by Radiant Imaging that were converted to TracePro Ray Files by Radiant Imaging’s ProSource software.

We are aware that some versions of the ProSource software have a bug related to the wavelength units, a problem of nm vs um, so the wavelength appearing in the TracePro File Source dialog is 1/1000 of the correct value.

Workaround
1- IF THE RAY FILE IS ASCII TEXT

- open the ray file in a text editor application (e.g. – NotePad ++)
- search for lines in the file that read “wavelength =”
- edit the wavelength values
2- IF THE RAY FILE IS BINARY

2A- Obtain an ASCII text file of the ray file, then edit the wavelengths per Workaround #1.

2B- If you are not able to obtain an ASCII text file of the ray file

- open a new TracePro model
- insert the downloaded Ray File at the origin
- insert a cylinder or block with a “collection” surface that is large enough so that all the rays will intersect it

Example: if the rays propagate from a plane at Z = 0, inserting a cylinder or block with a surface at Z=.000001 will work well.

Note: the collection surface can be any shape and at any location, but the rays of the final Ray File will start from the points of intersection with the collection surface, so it is beneficial to have the collection surface as close to the starting location of the rays as possible

- trace rays
- view the Incident Ray Table for the collection surface
- save the Incident Ray Table as a Ray File in .txt format
- open the .txt Ray file and edit the wavelengths per Workaround #1
- insert the edited Ray File in the TracePro model

Solution
The final resolution has 3 steps – (1) the bug in the ProSource software needs to be corrected, (2) a new TracePro Ray File needs to be created, and (3) the manufacturer needs to make that corrected TracePro Ray File available on their website.

We encourage you to report this issue to the manufacturer where you downloaded the ray file.

30051 新竹市經國路二段160號9F-8
Tel : 03-5359299  Fax: 03-5358908
統編: 28521213

光學軟體設計領導者

© 2018 All rights reserved. Setup by Eidea