An automated RF test needs a defined response when a command times out, a device restarts or a fault appears. The response should preserve evidence, remove the relevant operating permission as specified by the equipment, and prevent the script from blindly repeating the failed step. A retry is a new hardware action, not simply a software convenience.

Use the amplifier’s actual operating and interface documents to define the permitted recovery. No Python library, network protocol or generic state-machine pattern establishes an amplifier’s protection threshold, response time or ability to tolerate RF before readiness. The test controller must work within those documented limits.

Verify completion before advancing

For every action, identify the command, its acknowledgement, the expected device state and the evidence required to advance. A network write completing means that software handed over data; it does not necessarily mean that RF was muted, a supply settled or a switch reached its selected route. Use the corresponding status or permitted observation.

Define timeout behavior for each operation rather than inserting one delay throughout the script. Record which event starts the timeout and what happens if the response is missing or invalid. After reconnecting to a device, establish its current identity, configuration and state before reusing a previous ready result.

Make fault holds explicit

Control state Required behavior to define
Initialization Establish the documented inhibited condition and current device states
Ready for test Confirm the complete set of prerequisites for the requested operation
Running Track the test point, relevant status and validity of measurements
Fault hold Stop advancing, request the specified inhibit action, preserve evidence and record whether that action was confirmed
Recovery review Decide whether a documented retry is permitted or operator intervention is required
Resume Re-establish prerequisites and open a new, identified data segment

A script must also handle failure of the inhibit command itself. If communication is unavailable, log that the action was unconfirmed and use the system’s specified fallback or escalation path. Repeatedly sending a command cannot prove that a disconnected device received it. Any independent hardware protection requirement must be designed and validated separately.

Authorize retries by fault class

A temporary communication interruption and an unresolved load fault should not automatically share a recovery policy. Define which conditions permit a retry, its maximum count and the evidence needed first. Unknown configuration, repeated alarms, suspected damage or an unconfirmed RF path may require a held state and operator review under the approved procedure. The next evidence review is developed in Restarting an RF Test Bench After a Power Interruption; retain the relevant setup and acceptance conditions when using it.

Do not clear a fault merely to make the next command succeed. Save the fault text, device status, source settings, last test point and available traces before executing a permitted clear or reset. Check that a resumed script cannot silently restore the old RF output request before prerequisites are re-established. Use the RF integration support route to define the hardware interfaces, supplied scope and records needed for the proposed installation.

Keep recovery data separate from the original run

Assign a run identifier and record each state transition with its available timing and evidence. Mark incomplete points and the boundary between the interrupted and resumed segments. The test plan should determine which points must be repeated and whether a full section needs retesting; software should not turn missing measurements into passes.

Validate the allowed timeout, restart and communication-loss cases with the identified instruments and load. Use the RF test documentation route to agree evidence and acceptance conditions. Send CorelixRF the proposed fault-handling table with the device interfaces, retry conditions and required operator actions.