set_pump_valve
set_pump_valve
Description
Configures the default speed of a peristaltic pump in units of counts per second or its estimated flow rate in millilitres per second.
Signature
set_pump_valve(self, pump_num: int, valve_pos: int, wait: bool = True) -> CmdToken
Parameters
pump_num: int
The addresses of the pump on which to change valve settings, [0, 14].
valve_pos: {NorthC9.PUMP_VALVE_LEFT, NorthC9.PUMP_VALVE_CENTER, NorthC9.PUMP_VALVE_RIGHT}
The position to move the valve to. Some pumps may not support PUMP_VALVE_CENTER.
wait: bool, optional
If True, this command blocks until the valve move is complete.
Returns
CmdToken
A CmdToken object that can be used to follow up on the status of the valve move or wait for it to finish if wait = False.
Example