fbgui.devices package

Submodules

fbgui.devices.optical_switch module

class fbgui.devices.optical_switch.OpticalSwitch(address, port)[source]

Bases: socket.socket

Object representation of the Optical Switch needed for the program, overrides the socket module.

set_channel(channel)[source]

Sets the channel on the optical switch.

Parameters:channel (int) – channel to set the optical switch to

fbgui.devices.oven module

class fbgui.devices.oven.Oven(loc, manager)[source]

Bases: object

Delta oven object, uses pyvisa.

Variables:device (pyvisa.resources.gpib.GPIBInstrument) – PyVisa GPIB connection to the device
close()[source]

Closes the resource.

cooling_off()[source]

Turns oven cooling off.

cooling_on()[source]

Turns oven cooling on.

heater_off()[source]

Turns oven heater off.

heater_on()[source]

Turns oven heater on.

set_temp(temp)[source]

Sets set point of delta oven.

Parameters:temp (float) – Temperature to set the oven to

fbgui.devices.sm125_laser module

class fbgui.devices.sm125_laser.SM125(address, port)[source]

Bases: socket.socket

Socket 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 otherwise
Return type:Tuple[List[List[float]], List[List[float]]]
Returns:Wavelength readings, Amplitude readings
class fbgui.devices.sm125_laser.SM125DataType[source]

Bases: enum.Enum

Used 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)

fbgui.devices.temperature_controller module

class fbgui.devices.temperature_controller.TemperatureController(location, manager)[source]

Bases: object

Object representation of the Temperature Controller needed for the program.

Variables:device (pyvisa.resources.gpib.GPIBInstrument) – PyVisa GPIB connection to the device.
close()[source]

Close the device connection.

get_temp_k()[source]

Return temperature reading in degrees Kelvin.

Module contents