Chapter 3 Programming Your Universal Counter for Remote Operation
Programming Examples
3-58
Programming Guide
Programming Examples
In this section, you will see how to program the HP 53131A/132A to make many
common measurements. Examples are provided in the following programming
languages:
•
HP BASIC
•
Microsoft
QuickBASIC (version 4.5)*
•
Borland
Turbo C**
Using HP BASIC
This guide uses doubles quotes to enclose string parameters in syntax descriptions,
but uses single quotes in the HP BASIC programming examples for readability.
The Counter allows string parameters to be enclosed by either double or single
quotes. Each method is discussed in the following sub-sections.
To Send a Double-Quoted String
For the HP BASIC OUTPUT statements, remember that strings enclosed in
double quotes need special consideration. For example, send the FUNC “FREQ 1”
command with the following:
OUTPUT 703;"FUNC
""
FREQ 1
""
"
Note that a pair of double quotes (as shown in bold) is required by
HP BASIC to embed a double quote within an HP BASIC string.
To Send a Single-Quoted String
For more readable HP BASIC OUTPUT statements, you may send, for example,
the following:
OUTPUT 703;"FUNC
'
FREQ 1
'
"
Note the pair of single quotes (as shown in bold) is more readable.
___________________________
*
Microsoft is a U.S. registered trademark of Microsoft Corporation.
**
Turbo C is a product of Borland International, Inc.
Summary of Contents for 53131A
Page 1: ...Programming Guide HP 53131A 132A 225 MHz Universal Counter ...
Page 2: ......
Page 13: ...1 1 Before You Start ...
Page 24: ...Chapter 1 Before You Start Related Documentation 1 12 Programming Guide ...
Page 25: ...2 2 Command Summary A Quick Reference ...
Page 68: ...Chapter 2 Command Summary RST Response 2 44 Programming Guide ...
Page 69: ...3 3 Programming Your Universal Counter for Remote Operation ...
Page 167: ...4 4 Command Reference A Dictionary ...
Page 310: ...Chapter 4 Command Reference WAI Wait to Continue Command 4 144 Programming Guide ...
Page 311: ...5 5 Errors ...
Page 329: ......
Page 330: ...H Manual Part Number 53131 90044 Printed in U S A NOVEMBER 1996 ...