Phenometrics devices
PBR
- class app.workspace.devices.Phenometrics.classes.PBR.PBR(*args, **kwargs)
Bases:
ConnectorThe PBR102-F™ is the next generation indoor photo bioreactor for outdoor algae production ponds, large-scale bioreactors, and teaching tools for algae laboratories. The PBR102-F is a fully programmable instrument that includes the FSL200 Full Spectrum light that simulates the colors of sunlight and promotes algae growth.
Commands:
“1”: self.get_temp_settings,
“2”: self.get_temp,
“3”: self.set_temp,
“4”: self.get_ph,
“5”: self.measure_od,
“6”: self.get_pump_params,
“7”: self.set_pump_params,
“8”: self.set_pump_state,
“9”: self.get_light_intensity,
“10”: self.set_light_intensity,
“11”: self.turn_on_light,
“12”: self.get_pwm_settings,
“13”: self.set_pwm,
“14”: self.get_o2,
“15”: self.set_thermoregulator_state,
“16”: self.measure_ft,
“17”: self.get_co2,
“18”: self.measure_all,
“19”: self.measure_AUX,
“20”: self.flash_LED,
“21”: self.get_hardware_address,
“22”: self.get_cluster_name
- class PumpManager(device_id, connection: Connection)
Bases:
objectManager to control pumps.
- discard()
- start_pump()
- stop_pump()
- disableGUI()
Stop GUI of control software.
- disconnect()
Terminate the connection between the application and physical device.
- enableGUI()
Start GUI of control software.
- flash_LED()
Triggers a flashing sequence and is used to physically identify the PBR. !!! random blank spaces complicate things. Is it like that also with “real” PBR?
- Returns
True if was successful, False otherwise
- get_cluster_name()
The name of the bioreactor array / cluster.
- Returns
the cluster name
- get_co2(raw, repeats)
No implemented.
- get_hardware_address()
Get the MAC address of the PBR.
- Returns
the MAC address
- get_light_intensity(attribute)
Checks for current (max?) light intensity.
Items:
“intensity”: current light intensity (float) in μE,
“max”: maximal intensity (float) in μE,
“on”: True if light is turned on (bool)
- Parameters
attribute – Given attribute device_id
- Returns
The current settings structured in a dictionary.
- get_o2(raw=True, repeats=5, wait=0)
Checks for concentration of dissociated O2.
Items:
“pulse”: current stirring in %,
“min”: minimal stirring in %,
“max”: maximal stirring in %,
“on”: True if stirring is turned on (bool)
- Parameters
raw – True for raw data, False for data calculated according to temperature calibration
repeats – the number of measurement repeats
wait – waiting time between indivdevice_idual repeats
- Returns
The current settings structured in a dictionary.
- get_ph()
Get current pH (dimensionless.)
- Returns
The current pH.
- get_pump_params(pump)
Get parameters for given pump.
- Parameters
pump – Given pump
- Returns
The current settings structured in a dictionary.
- get_pwm_settings()
Checks for current stirring settings.
Items:
“pulse”: current stirring in %,
“min”: minimal stirring in %,
“max”: maximal stirring in %,
“on”: True if stirring is turned on (bool)
- Returns
The current settings structured in a dictionary.
- get_temp()
Get current temperature in Celsius degree.
- Returns
The current temperature.
- get_temp_settings()
Get information about currently set temperature, maximal and minimal allowed temperature.
- Returns
The current settings structured in a dictionary.
- measure_AUX(attribute)
Values of AUX auxiliary input voltage.
- Parameters
attribute –
???
- Returns
???
- measure_all(ft_attribute=5, pump_id=5)
Measures all basic measurable values.
- Parameters
ft_attribute – attribute for ft_measure
pump_id – id of particular pump
- Returns
dictionary of all measured values
- measure_ft(attribute)
No implemented.
- measure_od(attribute=0)
Measure current Optical Density (OD, dimensionless).
- Parameters
attribute – which attribute should be measured
- Returns
Measured OD
- set_light_intensity(attribute, intensity)
Control LED panel on photobioreactor.
- Parameters
attribute – Given attribute (0 for red light, 1 for blue light)
intensity – Desired intensity
- Returns
True if was successful, False otherwise.
- set_pump_params(pump, direction, flow)
Set up the rotation direction and flow for given pump.
- Parameters
pump – Given pump
direction – Rotation direction (1 right, -1 left)
flow – Desired flow rate
- Returns
True if was successful, False otherwise.
- set_pump_state(on)
Turns on/off given pump.
- Parameters
on – True to turn on, False to turn off
- Returns
True if was successful, False otherwise.
- set_pwm(value, on)
Set stirring settings.
- Parameters
value – desired stirring pulse
on – True turns on, False turns off
- Returns
True if was successful, False otherwise.
- set_temp(temp)
Set desired temperature in Celsius degree.
- Parameters
temp – The temperature.
- Returns
True if was successful, False otherwise.
- set_thermoregulator_state(on)
Set state of thermoregulator.
- Parameters
on – 1 -> on, 0 -> freeze, -1 -> off
- Returns
True if was successful, False otherwise.
- test_connection() bool
Test the connection between the application and physical device.
- turn_on_light(attribute, on)
Turn on/off LED panel on photobioreactor.
- Parameters
attribute – Given attribute
on – True turns on, False turns off
- Returns
True if was successful, False otherwise.