opus_interface_base
frog.hardware.plugins.spectrometer.opus_interface_base
¤
Provides a base class for interfacing with the OPUS program.
Classes¤
OPUSError
¤
Bases: DeviceError
Indicates that an error occurred with an OPUS device.
Functions¤
from_response(errcode, errtext)
classmethod
¤
Create an OPUSError from the information given in the device response.
Source code in src/frog/hardware/plugins/spectrometer/opus_interface_base.py
14 15 16 17 | |
OPUSInterfaceBase()
¤
Bases: SpectrometerBase
Base class providing an interface to the OPUS program.
Source code in src/frog/hardware/plugins/spectrometer/spectrometer_base.py
13 14 15 16 17 18 19 20 21 22 | |
Functions¤
connect()
¤
Connect to the spectrometer.
Source code in src/frog/hardware/plugins/spectrometer/opus_interface_base.py
23 24 25 | |
request_command(command)
abstractmethod
¤
Request that OPUS run the specified command.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
command
|
str
|
Name of command to run |
required |
Source code in src/frog/hardware/plugins/spectrometer/opus_interface_base.py
35 36 37 38 39 40 41 | |
start_measuring()
¤
Start a new measurement.
Source code in src/frog/hardware/plugins/spectrometer/opus_interface_base.py
27 28 29 | |
stop_measuring()
¤
Stop the current measurement.
Source code in src/frog/hardware/plugins/spectrometer/opus_interface_base.py
31 32 33 | |