
8-15
IM AQ6370C-17EN
Program Function
1
2
3
4
5
6
7
8
App
Index
8.3 Program Function Commands
There are two types of commands used in a program: function commands which are
input using a panel switch, and other special commands.
Variables
Variables that can be used in a program are shown in the table below.
Type
Variable Name Description
Generalized
variables
E, G to K,
O to R, T, U, V,
X, Y, Z
1
Contains a generalized numeric variable.
A$, B$, C$, D$ Contains a generalized string variable.
GP-IB variables
S
Performs serial polling and stores received status bytes.
This variable is also used as a generalized numeric variable.
A$, B$, C$, D$ Contains data received via the GP-IB2 port. This variable is
also used as a generalized string variable (on the AQ6370C,
AQ6373 or AQ6375) .
Date & time/file name variables
FILE$
Contains the name of the last file accessed.
TIME$
Contains the date and time. (Ex. 2005 Sep 08 20:45:37)
Marker variables
On the AQ6370C,
AQ6370D,
AQ6373B or
AQ6375B valid
variables
WM
Contains the wavelength value of the moving marker.
W1
Contains the wavelength value of fixed marker 1.
W2
Contains the wavelength value of fixed marker 2.
W2-W1
Contains the wavelength difference between fixed markers 1
and 2.
W(CH)
Contains the level values of fixed markers (CH: 1 to 1024).
LM
Contains the level value of the moving marker.
L1
Contains the level value of fixed marker 1.
L2
Contains the level value of fixed marker 2.
L2-L1
Contains the level difference between fixed markers 1 and 2.
L(CH)
Contains the level values of fixed markers (CH: 1 to 1024).
Analysis variables SPWD
Contains spectrum width applied in making a spectrum width
search.
PKWL
Contains a peak (or bottom) wavelength value applied in making
a peak (or bottom) search or spectrum width search.
MEANWL
Contains center wavelength applied in making spectrum
width search.
PKLVL
Contains a peak (or bottom) level value applied in making a
peak (or bottom) search or spectrum width search.
MODN
Contains the number of modes applied in making a spectrum
width search.
SMSR
Contains the side mode suppression ratio (level difference)
applied in making SMSR measurements.
SMSR2
Contains the longer wavelength side’s value of the side mode
suppression ratio (level difference) when an SMSR3 or SMSR4
measurement is executed (on the AQ6370C or AQ6370D).
WDMCHN
Contains the number of channels detected in performing
WDM analysis.
WDMWL(CH)
Contains the center wavelength of channel CH used in
performing WDM analysis.
WDMLVL(CH)
Contains the level of channel CH used in performing WDM
analysis.
WDMSNR(CH) Contains SNR of channel CH used in performing WDM
analysis.
MKPWR
Contains power obtained in making between line-markers
power measurements.
PMD
Contains the PMD value obtained in PMD analysis.
1: Generalized variables E, O, T, U, and V are valid only for the AQ6370C/AQ6370D/
AQ6375B.