HP 8642A Operating Manual page 222

Synthesized signal generator
Hide thumbs Also See for 8642A:
Table of Contents

Advertisement

Appendix B
Model 8642A/B
Appendix B:
Writing Messages to the Display (cont'd)
The following display results from entering the keys from the example on page 3-201:
I L U V H P
Example of Entering a User-Defined Message Via HP-IB
You can use the following example BASIC program to enter a message string of 49 characters
into Message 1. Note that the terminator for each service special function is "EN"; when in the
service special function mode, this is the programming equivalent of the local function of
pressing the Hz key locally.
DIMENSION 49 CHARACTER STRING
INPUT CHARACTER STRING FOR MESSAGE 1
CLEAR MESSAGE 1 IN THE 8 6 4 2 A / B
DETERMINE LENGTH OF MESSAGE 1
CONVERT EACH CHARACTER IN C$ TO
ITS EQUIVALENT ASCII NUMERIC
CODE
10
20
30
40
50
60
70
80
90
100
110
120
130
140
150
160
170
180
190
DIM C$ [49]
!
i
INPUT C$
!
!
OUTPUT 719; "SP3655EN"
!
!
LET L=LEN (C$)
!
i
!
FOR 1=1 TO L
!
LET A=NUM (C$[I,I])
!
OUTPUT 719 USING 130;A !
IMAGE "SP3656",K,"EN"
NEXT I
i
i
OUTPUT 719; "SP3657EN"
!
!
END
DISPLAY THE MESSAGE
Example of Reading a User-Defined Message Via HP-IB
You can use the following example BASIC program to read the Message 1 string.
10
DIM C$ [49]
20
OUTPUT 719; "SP3657EN"
30
ENTER 719; CS
40
END
DIMENSION 49 CHARACTER STRING
DISPLAY MESSAGE 1
READ MESSAGE 1
3-202

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

8642b8642a: 8642b

Table of Contents