trspectrometer.plugins.repratemenu package

Module to add a menu to change the laser repetition rate configuration option.

It will create a “Configure” menu (if not already present), and add to it a “Laser Reprate” menu containing a selection of rates. The listed rates are determined by a setting in the config file. The defaults are:

[repratemenu]
rates = [500, 1000, 2000, 2500, 3333.3333, 5000, 10000]

where the numbers in the rates list are in Hz.

To use this plugin module, ensure "repratemenu" is present in the Configuration File’s load=[...] list inside the Plugins section.

Note this does not change the actual output of any laser system, it just configures the software to work with the selected repetition rate. If your laser system only ever runs at a single rate, then this plugin is unnecessary. Instead, simply set the correct rate in the Configuration File’s laser_reprate = ... entry under the [hardware] section.

trspectrometer.plugins.repratemenu.update_reprate(value)[source]

Update the configuration with an updated laser repetition rate, in Hz.

Note this does not change the actual laser repetition rate, instead it configures the software to work with the given value, which should match that of the input laser.

Parameters:

value – Laser repetition rate in Hz.