Programming Guidelines

1. Perform the measurement manually, keeping track of the sequence of functions used.
2. In the written program, execute an instrument preset (IP) and set single-sweep mode
(SNGLS) before setting other spectrum analyzer functions.
3. Use variables for function values. List variables at the beginning of the program,
4. Activate spectrum analyzer functions in logical order. Place quotation marks around
spectrum analyzer commands. Separate commands with semicolons.
5. After setting spectrum analyzer functions, execute a take sweep (TS) command before
reading data or activating markers.
6. The spectrum analyzer can return only one value per programming line. Do not have more
than one query per programming line.
7. Use the exclamation point (!) to include comment lines when using HP BASIC. Use the
apostrophe or REM to create comment lines when using GW BASIC. (The use of the
exclamation point and the apostrophe to create comment lines are dependent on the
your system.)
2-l
0Writing a Program