FIREQServer#

class FIREQ_SERVER.fireq_server.FIREQServer(overlay_file: Path = None, host: str = '0.0.0.0', port: int = 5000, auth_token: str = 'fireq', logger: Logger | None = None)[source]#

Bases: object

TCP server for FIREQ experiments.

Spawns three threads:

  • a client handler thread, which communicates with the client to receive commands and send info/configuration

  • an execution thread, which manages the hw and runs commands received from the client

  • a data streamer, which sends acquisition data back to the client

start() → None[source]#

Start the server and block on the main thread.

Starts the network accept/receiver thread (daemon), then runs the main experiment loop in the current thread. Stops when stop() is called.

stop() → None[source]#

Stop the server gracefully.

Sets running flag to False, triggers stop event to abort sweeps, unblocks the main loop, and closes server/client sockets.

log_and_send_warning(warning: str)[source]#
log_and_send_error(error: str)[source]#