p5control.server.control
- p5control.server.control.await_close(inserv: InstrumentServer)
Blocks until the InstrumentServer is closed
- p5control.server.control.inserv_cli(inserv)
Run a command-line interface to allow user interaction with the instrument server.
- Parameters:
inserv (InstrumentServer object) – the instrument server
- class p5control.server.control.InservCmdPrompt(inserv: InstrumentServer)
Bases:
CmdInstrument server shell prompt processor
- intro = 'Welcome to the instrument server shell. Type help or ? to list commands.'
- prompt = '(inserv) '
- cmdloop(intro=None) None
Repeatedly issue a prompt, accept input, parse an initial prefix off the received input, and dispatch to action methods, passing them the remainder of the line as argument.
- emptyline() bool
When no command is entered.
- do_list(arg_string: str)
List all the available devices.
- do_del(arg_string: str)
Delete a device arg 1: <string> the device name.
- do_restart(arg_string: str)
Restart a device arg 1: <string> the device name
- do_restart_all(arg_string: str)
Restart all devices
- do_EOF(_)
Stop the instrument server and exiting