Programming Examples - HP 53150A Series Programming Manual

Microwave frequency counter
Table of Contents

Advertisement

Chapter 3 Programming Your Counter for Remote Operation

Programming Examples

Programming Examples
In this section, you will see how to program the HP 53150A/151A/152A to
make common measurements. Examples are provided in the following
programming languages:
HP BASIC
Microsoft® QuickBASIC
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.
Sending Double-Quoted and Single-Quoted Strings
In HP BASIC OUTPUT statements, strings enclosed in double quotes
need special consideration. For example, you can send the FUNC "FREQ
1" command as follows:
OUTPUT 703;"FUNC ""FREQ 1"""
Note that a pair of double quotes (shown in bold) is required to embed a
double quote within an HP BASIC string. For more readable HP BASIC
OUTPUT statements, you can send the following command instead:
OUTPUT 703;"FUNC 'FREQ 1'"
Note that the pair of single quotes (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.
3-54
Programming Guide

Advertisement

Table of Contents
loading

This manual is also suitable for:

53152a series53151a series

Table of Contents