State

SCPI Command :

FETCh:NRSub:MEASurement<Instance>:TPC:STATe
Commands in total: 2
Subgroups: 1
Direct child commands: 1
fetch(timeout: float = None, target_main_state: TargetStateA = None, target_sync_state: TargetSyncState = None) ResourceState[source]
# FETCh:NRSub:MEASurement<Instance>:TPC:STATe
value: enums.ResourceState = driver.nrSubMeas.tpc.state.fetch(timeout = 1.0, target_main_state = enums.TargetStateA.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.

Parameters:
  • timeout – numeric

  • target_main_state – Target MainState for the query Default is RUN.

  • target_sync_state – Target SyncState for the query Default is ADJ.

Returns:

meas_status: Current state or target state of ongoing state transition OFF: measurement off RUN: measurement running RDY: measurement completed

Cloning the Group

# Create a copy of the original group, that exists independently
state_copy = driver.nrSubMeas.tpc.state.clone()

Subgroups