Please enable JavaScript to view this site.

 Network Analyzers using RVNA and RNVNA software

The simplest method of program sweep initiation and waiting for sweep completion can be implemented by using the commands TRIG:SING and *OPC?.

The command TRIG:SING generates a trigger signal and starts sweeping under the following conditions:

The program trigger source is selected by command TRIG:SOUR BUS.

The Analyzer should be in the trigger waiting state, otherwise (Analyzer is sweeping, or Analyzer is in the hold state) an error occurs, and the command is ignored.

The transition of the Analyzer to the trigger waiting state depends on the state of the continuous initiation mode, which is set by command INIT:CONT. Provided that the continuous initiation mode is ON, the Analyzer automatically transits to the trigger waiting state when the program trigger source has been selected, and then each time at the end of a sweep. Provided that the continuous initiation mode is OFF, the Analyzer transits to the trigger waiting state for single time upon receiving the command INIT.

The command TRIG:SING remains pending until the end of sweep. This allows use the *OPC? query for the waiting the end of sweep.

Example 1. Program starts sweeping in all channels and waits for completion. The channels are swept one by one in turn. The continuous initiation mode must be enabled (after PRESET, for example).

TRIG:SOUR BUS

<loop>:

TRIG:SING

*OPC?

...

Selects the program trigger source and transits the analyzer to the trigger waiting state.

Starts sweep.

Waits for the end of the sweep.

After sweep completion the Analyzer returns to the trigger waiting state, and then the next trig:sing command can be sent.

Example 2. The program starts the sweep in one channel and waits for completion, then starts a sweep in another channel and waits for completion. The number of channels must be set to 2.

TRIG:SOUR BUS

INIT1:CONT OFF

INIT2:CONT OFF

<loop>:

INIT1

TRIG:SING

*OPC?

...

INIT2

TRIG:SING

*OPC?

...

Selects the program trigger source.

Puts channel 1 to the hold state.

Puts channel 2 to the hold state.

Puts channel 1 to the trigger waiting state.

Starts sweep in channel 1.

Waits for the end of the sweep.

Puts channel 2 to the trigger waiting state.

Starts sweep in channel 2.

Waits for the end of the sweep.

After sweep completion on one channel the Analyzer returns to the hold state and sweep initiation for another channel is then available.

 

Rev.:  24.1