Bler#
SCPI Commands :
- BLER:LOAD
- BLER:PRESet
- BLER:RESult
- BLER:SEQuence
- BLER:STARt
- BLER:STATe
- BLER:STOP
- BLER:STORe
- BLER:UNIT
- Commands in total: 21Subgroups: 2Direct child commands: 9
- class ResultStruct
Structure for reading output parameters. Fields:
Num_Block: int: Number of checked data bits.
Num_Errors: int: Number of error bits.
Error_Rate: float: If no termination criterion has been reached since the beginning of the measurement, display the current quotient of NumErrors (number of error bits) and NumBlock (number of data bits) . When at least one final result has been reached in continuous measurement, display the most recent final result.
Meas_Finished: int: Status of measurement.
1: Measurement has been terminated, i.e. stopped or the defined number of data bits or error bits has been reached.
0: Measurement has not been terminated.
Clock_Detected: int: Status of clock line.
1: Clock line active.
0: Clock line not active.
Data_Detected: int: Status of data line.
1: Data line active.Only clocked data is detected. If the clock signal is missing, a data change is also not detected.
0: Data line is not active.
Synchronized: int: integer
1: The measurement is synchronized and the ratio is assumed realistic.That is, the clock and data lines are active and the following apples:NumErrors/NumBlock 0.1.
0: The measurement is not synchronized.
- load ( filename: str ) None
# BLER:LOAD driver.bler.load(filename = 'abc')Loads the selected file from the default or the specified directory. Loaded are files with extension ber_bler Refer to for general information on file handling in the default and in a specific directory.
- Parameters:
filename – Filename or complete file path; file extension can be omitted
- preset ( ) None
- preset_with_opc ( opc_timeout_ms: int = -1 ) None
# BLER:PRESet driver.bler.preset() driver.bler.preset_with_opc(opc_timeout_ms = 3000)Sets the parameters of the BERT/BLER test generator to their default values (
*RSTvalues specified for the commands) . Not affected is the state set with the command .methodRsSmw.bert.state()/methodRsSmw.bler.state().preset_with_opc()does the same aspreset(), but waits for the operation to complete before continuing further. Use theRsSmw.utilities.opc_timeoutto set the timeout value.- Parameters:
opc_timeout_ms – Maximum time to wait in milliseconds, valid only for this call.
- get_result ( ) ResultStruct
# BLER:RESult value: ResultStruct = driver.bler.get_result()Queries the result of the last BLER measurement and responds with seven results, separated by commas. The first measurement following the start also queries intermediate results for the number of data bits, error bits and error rate. For method
RsSmw.bler.trigger.mode()AUTO, only the final results of each single measurement are queried in the following measurements. Note: The restart of a new measurement is delayed until the first measurement result has been queried. The resulting brief measurement interruption is irrelevant because the subsequent measurement is synchronized within 24 data bits.- Returns:
structure: for return value, see the help for ResultStruct structure arguments.
- get_sequence ( ) BlerTrigMode
- set_sequence ( sequence: BlerTrigMode ) None
# BLER:SEQuence # get: value: enums.BlerTrigMode = driver.bler.get_sequence() # set: driver.bler.set_sequence(sequence = enums.BlerTrigMode.AUTO)
No help available
- start ( ) None
- start_with_opc ( opc_timeout_ms: int = -1 ) None
# BLER:STARt driver.bler.start() driver.bler.start_with_opc(opc_timeout_ms = 3000)Starts a continuous measurement.
start_with_opc()does the same asstart(), but waits for the operation to complete before continuing further. Use theRsSmw.utilities.opc_timeoutto set the timeout value.- Parameters:
opc_timeout_ms – Maximum time to wait in milliseconds, valid only for this call.
- get_state ( ) bool
- set_state ( state: bool ) None
# BLER:STATe # get: value: bool = driver.bler.get_state() # set: driver.bler.set_state(state = False)
Activates/deactivates the measurement.
- Parameters:
state – 1 | ON | 0| OFF
- stop ( ) None
- stop_with_opc ( opc_timeout_ms: int = -1 ) None
# BLER:STOP driver.bler.stop() driver.bler.stop_with_opc(opc_timeout_ms = 3000)Stops an ongoing measurement.
stop_with_opc()does the same asstop(), but waits for the operation to complete before continuing further. Use theRsSmw.utilities.opc_timeoutto set the timeout value.- Parameters:
opc_timeout_ms – Maximum time to wait in milliseconds, valid only for this call.
- set_store ( filename: str ) None
# BLER:STORe driver.bler.set_store(filename = 'abc')Saves the current settings into the selected file; the file extension (ber_bler) is assigned automatically. Refer to for general information on file handling in the default and in a specific directory.
- Parameters:
filename – Filename or complete file path.
Cloning the Group
# Create a copy of the original group, that exists independently
bler_copy = driver.bler.clone()
Subgroups