Description
Compared to PSI PBR, the change of the state of pump in ePBR is more complicated. It cannot be simply switched on and off. The pump works as following:
- it is turned on and additional medium is added to the bioreactor (takes 20 seconds)
- then the pump is turned off and another pump extracts extra medium from the bioreactor
The problem with point 2. is that the extraction pump is possibly shared with other devices.
Considering the given information, we propose the following implementation of set_pump_state
for ePBR
(has to be verified)
OD = measure_od()
while OD > min_OD:
setAux1(1) # this turns on the pump
time.sleep(40) # sleep 40 seconds, should be enough to accomplish steps 1. and 2.
OD = measure_od()
such that min_OD is given to ePBR
during initialisation.
Question for Jan:
We are still not sure how correctly use setAux1
. It takes as argument 0/1
, which should turn off/on
the pump. As described above it is quite clear how setAux1(1)
should be used. What is not clear, however, is whether after the "40 seconds" the state is set back to 0
. Also it is not clear whether setAux1(0)
has any effect at all - and if it does, what does it actually mean in the context of steps described above and on the pseudo-code provided above.