set_summary_state#
- async lsst.ts.salobj.set_summary_state(remote, state, override='', timeout=30)#
Put a CSC into the specified summary state.
- Parameters:
remote (
Remote) – Remote for the CSC to be enabled.state (
Stateorint) – Desired summary state.override (
str) – Configuration override file to apply if the CSC is taken from stateState.STANDBYtoState.DISABLED.timeout (
float) – Timeout for each state transition command and a possible initial summaryState read (sec).
- Returns:
states – A list of the initial summary state and all summary states this function transitioned the CSC through, ending with the desired state.
- Return type:
list[State]- Raises:
asyncio.TimeoutError – If the initial summary state cannot be read within the specified time limit, or any individual state transition takes longer than the specified time limit.
Notes
This function assumes the CSC is listening to SAL commands. If the CSC is not running then this function will time out (unless the last reported summary state has been cached and matches
state.