Solved

How do you select a Wavelength Data preset with a macro?

  • 13 June 2022
  • 1 reply
  • 139 views

Userlevel 1

How can I select a wavelength preset, specifically a custom one that I made by clicking the save button on the Wavelength Data editor, in a macro script?  The purpose is for selecting certain wavelengths, running an analysis window, then changing wavelengths, and running an analysis window again and so on.

icon

Best answer by Jeff.Wilde 14 June 2022, 07:40

View original

1 reply

Userlevel 7
Badge +3

I’m not aware of any way to load a wavelength file within a ZPL script, but you can try using the keyword SETSYSTEMPROPERTY to change individual wavelengths:

 

 

The codes 200-203 provide wavelength setting control.

 

Similar functions exist in the ZOS-API.

 

Reply