opus_interface_base
frog.hardware.plugins.spectrometer.opus_interface_base
¤
Provides a base class for interfacing with the OPUS program.
Classes¤
OPUSError
¤
Bases: Exception
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 frog/hardware/plugins/spectrometer/opus_interface_base.py
13 14 15 16 |
|
OPUSInterfaceBase()
¤
Bases: SpectrometerBase
Base class providing an interface to the OPUS program.
Source code in 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 frog/hardware/plugins/spectrometer/opus_interface_base.py
22 23 24 |
|
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 frog/hardware/plugins/spectrometer/opus_interface_base.py
34 35 36 37 38 39 40 |
|
start_measuring()
¤
Start a new measurement.
Source code in frog/hardware/plugins/spectrometer/opus_interface_base.py
26 27 28 |
|
stop_measuring()
¤
Stop the current measurement.
Source code in frog/hardware/plugins/spectrometer/opus_interface_base.py
30 31 32 |
|