For interacting with the server from your python code directly, you can use the following functions.

Python client

The following functions provide modes of interaction with a running server.

class client.Mila(host, port)
cancelAll(recovery=False)
checkBattery()

This method checks the current battery percentage of MiLA and charges until it has reached at least 20%.

run_command(command, name, recovery)

Runs a SiLA command. Defined- and Undefined-Execution errors will be printed, if the command initialization fails. If it is observable, the result of the command will be observed and if specified, the recovery mode will be started for failed commands. But only, if variable recovery is set to true.

run_recovery(command, name)

Depending on the type of command, different commands for the recovery of MiLA will be executed. After that, the original command will be repeated.

start_client()

Tries to set a connection to a SiLA client

workflow(current_plate_number, first_position, start_plate_id, second_position, goal_plate_id, plate_type, delay, maximum_plates, plate_to_waste)

In this workflow MiLA transports a microtiter plate from device first_position to second_position which counts as one loop run. The variable current_plate_number defines, if new plates from MiLA storage spaces will be put on device first_position for the next loop run.