EasyManua.ls Logo

HP 1650B User Manual

HP 1650B
346 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #31 background imageLoading...
Page #31 background image
String Variables
Since there are so many ways to code numbers, the HP
1650B/XB
handles almost all data as ASCII strings. Depending on your host
language, you may be able to use other types when reading in responses.
Sometimes it is helpful to use string variables in place of constants to send
instructions to the HP 1650B/51B. The example below combines variables
and constants in order to make it easier to switch from MACHINE1 to
MACHINE2 In BASIC, the
&
operator is used for string concatenation.
10 LET Machine$ = ":MACHINE2" !Send all instructions to machine 2
20 OUTPUT XXX; Machine$ & ":TYPE STATE" !Make machine a state analyzer
30 !Assign all labels to be positive
40 OUTPUT XXX;
Machine$
&
":SFORMAT:LABEL
'WAN
1'.
POS"
50 OUTPUT XXX; Machine$ & ":SFORMAT:LABEL 'CHAN 2'. POS"
60 OUTPUT XXX; Machine$ & ":SFORMAT:LABEL 'OUT', POS"
99 END
If you want to observe the headers for queries, you must bring the
returned data into a string variable. Reading queries into string variables
requires little attention to formatting. For example:
ENTER XXX;Result$
places the output of the query in the string variable Result%
Note
d
Inthelan
guage used for this book (HP BASIC 4.0), string variables are
case sensitive and must be expressed exactly the same each time they are
used.
HP 1650B/HP 1651B
Programming Reference
The output of the instrument may be numeric or character data
depending on what is queried. Refer to the specific commands for the
formats and types of data returned from queries.
Introduction to Programming an Instrument
1-15

Table of Contents

Question and Answer IconNeed help?

Do you have a question about the HP 1650B and is the answer not in the manual?

HP 1650B Specifications

General IconGeneral
CategoryLogic Analyzer
Model1650B
Number of Channels80
Maximum Clock Rate100 MHz
Glitch TriggerYes
Transitional TimingYes
DisplayCRT

Summary

Chapter 1 Introduction to Programming an Instrument

Programming Syntax and Concepts

Explains command format, structure, headers, parameters, and syntax rules for instrument control.

Instrument Programming Basics

Covers initialization, example programs, data retrieval, and response formats.

Chapter 2 Programming Over HP-IB

Chapter 3 Programming Over RS-232C

Chapter 5 Common Commands

Key Common Commands

Details essential commands like *CLS, *ESE, *IDN, *RST for status and identification.

Chapter 6 System Commands

Key System Commands

Details core commands like ARM, DATA, LOCKout, LONGform, STARt, STOP.

Chapter 7 MMEMory Subsystem

File Management Commands

Covers AUToload, CATALOG, COPY, DOWNLOAD, LOAD, PACK, PURGE, RENAME, STORE, UPLOAD.

Chapter 10 MACHine Subsystem

Machine Configuration Commands

Covers commands like NAME, TYPE, ARM, ASSign for machine setup.

Chapter 11 SFORmat Subsystem

State Format Configuration

Details SFORmat selector and commands like CLOCK, CPERiod, LABel.

Chapter 12 STRace Subsystem

State Trace Qualification

Details BRANch, FIND, PREStore, RESTart for trace sequence control.

Chapter 13 SLISt Subsystem

State Listing Configuration

Details commands like COLumn, DATA, LINE, MMODE, PATtern for listing setup.

Chapter 14 SWAVeform Subsystem

Waveform Display Configuration

Details ACCumulate, DELay, INSert, RANGe, REMove for waveform display setup.

Chapter 16 COMPare Subsystem

Compare Data Configuration

Details CMASk, COPY, DATA, FIND, RANGe, RUNTil for comparison setup.

Chapter 17 TFORmat Subsystem

Timing Format Configuration

Details LABel, REMove, THReshold for timing format setup.

Chapter 18 TTRace Subsystem

Timing Trace Configuration

Details AMODe, DURation, EDGE, GLITch, PATTern for timing trace setup.

Chapter 19 TWAVeform Subsystem

Timing Waveform Configuration

Details ACCumulate, DELay, INSert, MMODe, OCONdition for waveform setup.

Related product manuals