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.Client(host, port)

Client for gRPC functionality for hel bioxplorer

calc(reactorList)

The reactor list corresponds to the reactors in the PolyBlock. Lower left =0, upper right = 7 :param reactorList: list with active bioreactor positions 0-7 :return:

getSetPoint(runID, reactorList, interval, setFeed=False, setTemp=False, setpH=False, setStirrer=False, setAir=False)

Command for retrieving remote setpoints e.g. from database :param runID: runID for experiment in database :param reactorList: list with active bioreactor positions 0-7 :param interval: update interval in seconds :param setFeed: Controls feed pumps :param setTemp: Controls temperature :param setpH: Controls pH. Only one sided control for base :param setStirrer: Controls stirring speed :param setAir: Controls air flow :return:

sendData(runID, reactorList, interval)

Command for sending process data to database

Parameters:
  • runID – runID for experiment in database

  • reactorList – list with active bioreactor positions 0-7

  • interval – logging interval in seconds

Returns: