Language Reference

TRCOND

Example

140

ALLOCATE Disp_mode$[3]

 

Allocate string variable in computer for storing conditions .

 

150

OUTPUT 723;"TRCOND TRA?;"

 

Query trace conditions to computer .

 

160

ENTER 723

USING "#,K";Start,Stop,Sweep

 

Return data.

 

 

170

ENTER 723

USING "#,K";Top,Bottom,Data

 

180

ENTER 723

USING "#,K";Reference,Disp_mode$

190DISP Bottom;"MEASUREMENT UNITS"

Display minimum trace value .

Description The TRCOND command formats the spectrum-analyzer settings so that measurement results stored in trace arrays are properly displayed in a

graphics window de￿ned by the DWINDOW command.

Set the top-of-screenparameter, in measurement units, equal to the maximum amplitude you want to display.

Set the bottom-of-screenparameter, in measurement units, equal to the lowest value you want to display.

Set the trace-lengthparameter equal to the number of elements in the trace.

Set the reference-levelparameter, in dBm, equal to the reference level active when trace data was stored.

Set the start- and stop-wavelengthparameters, in meters, equal to the start and stop frequencies that were active when the trace was stored (swept).

Set the sweep-timeparameter, in seconds, equal to the sweep time that was active when the trace was stored (swept).

Command arguments LINPWR, LOG, and RLOG determine how data is interpreted. LINPWR interprets data in an absolute, linear power scale. LOG interprets data in an absolute, logarithmic scale. RLOG interprets data in a relative, logarithmic scale.

7-504