Please enable JavaScript to view this site.

 Network Analyzers using TRVNA 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 using the command *OPC? query for the waiting the end of sweep.

Example. 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.

 

Rev.:  24.1