State
SCPI Command :
FETCh:GPRF:MEASurement<Instance>:POWer:STATe
- class StateCls[source]
State commands group definition. 2 total commands, 1 Subgroups, 1 group commands
- fetch(timeout: float = None, target_main_state: TargetMainState = None, target_sync_state: TargetSyncState = None) ResourceState [source]
# SCPI: FETCh:GPRF:MEASurement<Instance>:POWer:STATe value: enums.ResourceState = driver.power.state.fetch(timeout = 1.0, target_main_state = enums.TargetMainState.OFF, target_sync_state = enums.TargetSyncState.ADJusted)
Queries the main measurement state. Without query parameters, the state is returned immediately. With query parameters, the state is returned when the <TargetMainState> and the <TargetSyncState> are reached or when the <Timeout> expires.
- param timeout:
numeric Unit: ms
- param target_main_state:
OFF | RUN | RDY Target MainState for the query Default is RUN.
- param target_sync_state:
PENDing | ADJusted Target SyncState for the query Default is ADJ.
- return:
meas_state: No help available
Cloning the Group
# Create a clone of the original group, that exists independently
group2 = driver.power.state.clone()
Subgroups