Monochromator
Monochromator is a module to control monochromators, e.g. to select the wavelength of light during a measurement.
Graphical user interface
The module has two tabs: "Setup" with the fields described below and "SweepEditor" to create the list of sweep values.
Wavelength in nm
key: "Wavelength"
The wavelength in nm that is applied if the Sweep mode is set to None.
End position in nm
key: "EndPosition"
An optional wavelength in nm that is set at the end of the run. Leave empty if not needed. Only used if supported by the driver.
Light input
key: "Input"
A drop-down menu to select available input ports if the monochromator has multiple ones.
Light output
key: "Output"
A drop-down menu to select available output ports if the monochromator has multiple ones.
Filter
key: "Filter"
A combo box to select a filter or add a string that defines the filter-wavelength changes.
Grating
key: "Grating"
A combo box to select a grating or add a string that defines the grating-wavelength changes.
Lamp
key: "Lamp"
A combo box to select a lamp or to enter a lamp-wavelength dependence if supported by the driver.
Bias light
key: "BiasLight"
A drop-down menu to select a bias light source that illuminates the sample in addition to the wavelength-dependent light, if supported by the driver.
Input slit in µm
key: "SlitInput"
A combo box to select or enter the width of the input slit in µm.
Output slit in µm
key: "SlitOutput"
A combo box to select or enter the width of the output slit in µm.
Current motor position
key: "MotorPosition"
A field to enter a number that tells the driver at which position the monochromator currently is. Basically this feature is needed for older monochromators that do not remember their position after switching them off. If you use this field, please add a variable that starts with "Motor position" to your driver. Then, the module will update the value in the field during the measurement, so that you do not need to enter it again after a run.
Parameter
key: "Parameters"
A section with further driver-specific parameters. It is only shown if the selected driver provides such parameters.
Test
key: "Configuration"
Enter a value according to the selected Sweep mode in the field "Value" and press "Apply" to set it without starting a run. "Stop" calls the functions of the driver that are used at the end of a run, e.g. deinitialize. "Go home" moves the monochromator to its home position, see Go home.
Driver programming
Wavelength in nm
Please provide 'None' as Sweep mode. If the user selects 'None', the entered wavelength in the field 'Wavelength in nm' can be used for the measurement. Otherwise the wavelength can be set during apply().
Filter-wavelength dependence
A dependence between filter number and wavelength could be defined like: 1 <- 500 nm -> 3 <- 1000 nm -> 2 <- 1500 nm -> 4
Here, filter 1 is used until 500 nm, followed by filter 3 until 1000 nm. Filter 2 is used until 1500 nm and for all higher wavelength, filter 4 is used. We recommend to stick with the above scheme to have a uniform handling for all drivers that are created for the module Monochromator. An example can be found in the driver 'Monochromator-Newport_OrielCornerstone260'.
Grating-wavelength dependence
Similarly to a filter-wavelength dependence, a grating-wavelength dependence could be defined like: 1 <- 800 nm -> 3 <- 1400 nm -> 2
Go home
The button "Go home" should be used to bring a monochromator to its home position. It only works if the driver has a function "go_home". In this case, the following functions are called:
- connect
- go_home
- disconnect
The function "go_home" should provide all necessary commands to go back to the home position, including initialize() and deinitialize() if needed.