fbgui.devices package¶
Submodules¶
fbgui.devices.optical_switch module¶
fbgui.devices.oven module¶
fbgui.devices.sm125_laser module¶
-
class
fbgui.devices.sm125_laser.SM125(address, port)[source]¶ Bases:
socket.socketSocket connection for SM125 device.
-
get_data(use_positions)[source]¶ Returns the SM125 wavelengths, amplitudes, the two lists are both of length 4, a value of 0 is used if no peak is detected on a channel that is expecting data, or used if not expecting data on a channel.
Parameters: use_positions ( List[bool]) – list of 4 values, True if expecting data on that channel, False otherwiseReturn type: Tuple[List[List[float]],List[List[float]]]Returns: Wavelength readings, Amplitude readings
-
-
class
fbgui.devices.sm125_laser.SM125DataType[source]¶ Bases:
enum.EnumUsed for parsing the correct data from the SM125 response. Contains size of value in bytes, type of value used by struct module for binary conversion, multiplier used for converting the received value.
-
AMPLITUDE= (2, 'h', 100.0)¶
-
WAVELENGTH= (4, 'i', 10000.0)¶
-