libgs.protocols.protocolbase.ProtocolTest.do_action

ProtocolTest.do_action(*args, **kwargs)[source]

Request an action to be performed

Actions can be arbitrary sequences of commands and/or other functionality that are too complex to be captured with a simple byte sequence transmission.

The arguments are passed through from whatever the operator entered when creating the schedule, and there are no requirements, however it is good practivce to make the first argument the name of the action, and any subsequent argument and/or kwarg to be arguments that action requires.

Upon any error, this method should raise an Exception.

Parameters:
  • *args – Any set of arguments (the first should be the action name)
  • **kwargs – Any set of kwarguments
Returns:

None