pcdsdevices.state.get_dynamic_state_attr

pcdsdevices.state.get_dynamic_state_attr(state_index: int) str

Get the attr string associated with a single state index.

For example, the 5th state should create an attribute on TwinCATStateConfigDynamic called “state05”. Therefore, get_dynamic_state_attr(5) == “state05”.

This is only applicable for integers between 1 and the TWINCAT_MAX_STATES global variable, inclusive.

Parameters:

state_index (int) – The index of the state.

Returns:

state_attr (str) – The corresponding attribute name.