Dummy hardware class to simulate the controls for a wavemeter.
More...
|
def | __init__ (self, config, kwargs) |
|
def | on_activate (self) |
| Activate module.
|
|
def | on_deactivate (self) |
| Deactivate module.
|
|
def | start_acqusition (self) |
| Methods of the main class. More...
|
|
def | stop_acqusition (self) |
| Stops the Wavemeter from measuring and kills the thread that queries the data. More...
|
|
def | get_current_wavelength (self, kind="air") |
| This method returns the current wavelength. More...
|
|
def | get_current_wavelength2 (self, kind="air") |
| This method returns the current wavelength of the second input channel. More...
|
|
def | get_timing (self) |
| Get the timing of the internal measurement thread. More...
|
|
def | set_timing (self, timing) |
| Set the timing of the internal measurement thread. More...
|
|
def | __init__ (self, manager, name, config=None, callbacks=None, kwargs) |
| Initialise Base class object and set up its state machine. More...
|
|
def | log (self) |
| Returns a logger object.
|
|
def | is_module_threaded (self) |
| Returns whether the module shall be started in a thread.
|
|
def | on_activate (self) |
| Method called when module is activated. More...
|
|
def | on_deactivate (self) |
| Method called when module is deactivated. More...
|
|
def | getStatusVariables (self) |
| Return a dict of variable names and their content representing the module state for saving. More...
|
|
def | setStatusVariables (self, variableDict) |
| Give a module a dict of variable names and their content representing the module state. More...
|
|
def | getConfiguration (self) |
| Return the configration dictionary for this module. More...
|
|
def | get_connector (self, connector_name) |
| Return module connected to the given named connector. More...
|
|
def | __new__ (cls, name, bases, attrs) |
| Collect declared Connectors, ConfigOptions and StatusVars into dictionaries. More...
|
|
|
| threadlock |
|
| hardware_thread |
|
| module_state |
|
| connectors |
|
|
| sig_handle_timer = QtCore.Signal(bool) |
|
Dummy hardware class to simulate the controls for a wavemeter.
Example config for copy-paste:
temp_tsys: module 'wavemeter_dummy.WavemeterDummy' measurement_timing 10.0
◆ get_current_wavelength()
def wavemeter_dummy.WavemeterDummy.get_current_wavelength |
( |
|
self, |
|
|
|
kind = "air" |
|
) |
| |
This method returns the current wavelength.
- Parameters
-
string | kind: can either be "air" or "vac" for the wavelength in air or vacuum, respectively. |
- Returns
- float: wavelength (or negative value for errors)
◆ get_current_wavelength2()
def wavemeter_dummy.WavemeterDummy.get_current_wavelength2 |
( |
|
self, |
|
|
|
kind = "air" |
|
) |
| |
This method returns the current wavelength of the second input channel.
- Parameters
-
string | kind: can either be "air" or "vac" for the wavelength in air or vacuum, respectively. |
- Returns
- float: wavelength (or negative value for errors)
◆ get_timing()
def wavemeter_dummy.WavemeterDummy.get_timing |
( |
|
self | ) |
|
Get the timing of the internal measurement thread.
- Returns
- float: clock length in second
◆ set_timing()
def wavemeter_dummy.WavemeterDummy.set_timing |
( |
|
self, |
|
|
|
timing |
|
) |
| |
Set the timing of the internal measurement thread.
- Parameters
-
float | timing: clock length in second |
- Returns
- int: error code (0:OK, -1:error)
◆ start_acqusition()
def wavemeter_dummy.WavemeterDummy.start_acqusition |
( |
|
self | ) |
|
Methods of the main class.
Method to start the wavemeter software.
@return int: error code (0:OK, -1:error)
Also the actual threaded method for getting the current wavemeter reading is started.
◆ stop_acqusition()
def wavemeter_dummy.WavemeterDummy.stop_acqusition |
( |
|
self | ) |
|
Stops the Wavemeter from measuring and kills the thread that queries the data.
- Returns
- int: error code (0:OK, -1:error)
The documentation for this class was generated from the following file:
- hardware/wavemeter_dummy.py