Category Archives: CODE

Parameter variation improved

The global “parameter variation” mechanism (started by the menu command “Actions/parameter variation”) has been enhanced. From now on objects of type “Color angle variation” export their full angle dependence for every value of the parameter variation to the workbook. Tables for L*, a* and b* are written to individual worksheets.

Automated data acquisition enhanced

Starting with object generation 4.20 you can now select if a spectrometer object acquires new data at automation steps.

The default behaviour is to acquire new data at each automation step. Objects that do this are painted in red in the list of spectrometers. Objects which do not record data at automation events are drawn in gray.

In order to toggle data acquisition on and off press function key F4 (or F5).

NFRC U-factor computation

The computation of NFRC U-factors and SHGC values involves an iterative process to achieve a stable temperature profile within the glazing. The net energy flow is computed once temperature differences betweeen 2 iterations are below a threshold value. This value has been 0.0001 (K) up to now.

Starting in CODE version 4.20 you can individually set the threshold for each integral quantity. In particular, you can set smaller values to avoid (very small) differences between CODE and WINDOW results for U-factors.

New fit option: Maximum number of iterations

There is a new option to stop a parameter fit: You can set a maximum number of iterations (i.e. re-computations of the optical model).

This option allows to define a reproducable fit quality, independent of the computer speed and workload given by other processes.

Before you set the maximum you must figure out how many iterations are sufficient to reach your goals, probably adding some extra iterations for tough fit situations.

New optical function: refractive index from fringes

Narrow interference fringes of thick layers can be used to determine the refractive index of the sample if the mechanical thickness of the layer is known. The new optical function ‘refractive index from fringes’ provides this functionality, analyzing interference maxima.

Spectra must be provided in wavenumbers. The function requires 5 parameters:

  1. wavenumber minimum of the relevant spectral range
  2. wavenumber maximum of the relevant spectral range
  3. Minimum height of an interference maximum
  4. Minimum separation of 2 neighbored maxima
  5. Mechanical thickness in microns

The following example shows how to write a function call:

R (refractive index from fringes 2800 2900 0.2 2.5 754)

 

Template for batch control tables

The batch control window can now save its content as a template for future work. Use the local menu commands Actions/Save current content as template and Actions/Load template to save and load the tables. A file called batch_control_template.xlsx in the user application directory is used to store the template.

 

Colorbox: Export average spectrum

You can now export the computed average spectrum to an object in the list of spectra. The property dialog allows to specify the name of the receiving object.

If a name of an existing spectrum object is defined, the average spectrum will be copied to the field ‘experiment’ – as if it were a measured spectrum. This way you can compute integral quantities for the average spectrum.