Agilent Technologies 8590 TV Converter Box User Manual


 
ACTDEF Active Function Definition
Example 2
This example uses ACTDEF in a downloadable program that is created by the KEYDEF
command. In this example, the ACTDEF function D-SPAN is assigned to softkey 1. When
softkey
1 is pressed,
ENTER FFT SPAN
is displayed on the spectrum analyzer display. When a
value is entered, the sweep time is changed to prepare the spectrum analyzer for making a fast
Fourier transform measurement. (See “FFT” for more information about making a fast Fourier
transform measurement.)
OUTPUT
718;"KEYDEF
l,D-SPAN,@
FFTISPANO;"
Assigns D-SPAN to
SOJ%
key 1.
OUTPUT
718;"ACTDEF
D-SPAN,OENTER
FFT
SPANO,lOO,HZ,Q";
Defines
the
DSPANfunc-
tion. The D-SPAN func-
tion displays
ENTER FFT
SPAN
on the spectrum an-
alyzer display, and has
an initial value of 100 Hz.
Thefrequency span must
be zero to make a FFT
measurement.
OUTPUT
718;"MOV
SP,O;";
OUTPUT
718;"DIV
ST,200,D_SPAN;";
OUTPUT
718;"@;"
LOCAL 718
Changes the spectrum an-
al
yzer
sweep time accord-
ing to the value of D-SPAN.
DSPANis
divided by 200,
which represents the num-
ber of buckets.
Ends
the ACTDEF declaration.
After executing this example, the softkey label of softkey 1 is FFT
SPBBS
.
Softkey
1 can be
accessed by pressing
(j-j,
User
Mems
.
Description
With the ACTDEF command, you can create an active function
that
is similar to
the
active
functions that are already provided by the spectrum analyzer. For example, CF, DL, AT, MKA,
MKFCR, MKD, MKF, MKN, RB, SS, ST, TH, VAVG, VB, VBR are all active functions that are
provided by the spectrum analyzer.
The ACTDEF command consists of the function name,
the
text for the active function readout,
the preset value, the unit, and the analyzer commands or user-defined function.
Function name: The function name is the name that will be used to invoke the ACTDEF
function. See line 40 of Example 1 for an example of invoking an ACTDEF function.
Text
for the active function readout: This is the text is displayed, when the ACTDEF
function is active, in the active function readout area of the spectrum analyzer display.
Preset value: The preset value is the value of the ACTDEF function until you change it.
Executing an instrument preset (IP) resets the ACTDEF function’s value back to the preset
value.
Units: The ACTDEF function’s value can be manipulated in different ways depending on the
units parameter that is specified. For example, if you select INT (integer) units, the value of the
ACTDEF function can only be incremented or decremented by 1. For the INT unit, the step
keys and the knob can be used to change the function’s value.
Programming Commands 5-51