attpcdaq.daq.models.ECCServer.change_state¶
-
ECCServer.change_state(target_state)[source]¶ Tells the ECC server to transition the data source to a new state.
If the request is successful, the
is_transitioningfield will be set to True, but thestatefield will not be updated automatically. To update this,refresh_state()should be called to see if the transition has completed.Parameters: target_state (int) – The desired final state. The required transition will be computed using _get_transition().Raises: RuntimeError– If the data source does not have a config set.