pylabrobot.gyger.CertusFlex.clean_cycle#

async CertusFlex.clean_cycle(channels: Sequence[int], *, prime_duration: float, purge_duration: float, purge_pulse_duration: float, cycles: int = 5, purge_interval: float | None = None, speed: Literal['init', 'joystick', 'medium', 'rapid', 'slow', 'park', 'clamp_close'] = 'slow') → None#

Move to purge, repeat purge → 250 ms wait → prime, then park.

Channels are zero-based indexes into valves. Each phase processes the selected channels sequentially. Durations are seconds per channel per cycle; purge duration is cumulative valve-open time, not elapsed wall time. Initialize the machine and set dispensing pressure before calling. Pressure and its setpoint are left unchanged; the caller controls discharge explicitly.

All operations share one lock. On failure or cancellation, attempt to stop the selected valves, preserve the original error, and issue no recovery move or repeated dose. A lost connection can prevent stopping a valve; disconnecting is not an emergency stop. Cleaning effectiveness requires physical verification.

Parameters:
  • channels (Sequence[int])

  • prime_duration (float)

  • purge_duration (float)

  • purge_pulse_duration (float)

  • cycles (int)

  • purge_interval (float | None)

  • speed (Literal['init', 'joystick', 'medium', 'rapid', 'slow', 'park', 'clamp_close'])

Return type:

None