Programming
3
Keysight 53147A/148A/149A Operating and Programming Guide
201
Programming Examples
In this section, you will see how to program the Keysight 53147A/ 148A/149A to
make common measurements. Examples are provided in
the following programming languages:
– BASIC
– Microsoft
®
QuickBASIC
[1]
– C
[2]
Using BASIC
This guide uses doubles quotes to enclose string parameters in syntax
descriptions, but uses single quotes in the BASIC programming examples for
readability.
The instrument 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 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 BASIC string. For more readable 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.
[1] Microsoft is a U.S. registered trademark of Microsoft Corporation.
[2] Turbo C is a product of Borland International, Inc.
Содержание 53147A
Страница 1: ...Keysight 53147A 148A 149A Microwave Frequency Counter Power Meter DVM Operating and Programming Guide ...
Страница 20: ...20 Keysight 53147A 148A 149A Operating and Programming Guide THIS PAGE HAS BEEN INTENTIONALLY LEFT BLANK ...
Страница 310: ...312 Keysight 53147A 148A 149A Operating and Programming Guide THIS PAGE HAS BEEN INTENTIONALLY LEFT BLANK ...