6 - 34

THE CPL PROTOCOL

Example: (of user text)

Read the user text from the screen of an oscilloscope:

90

DIM USERTXT$ (64)

 

100

PRINT #1,"QT"

:’Query user Text command

110

GOSUB 1000

:’Sync on acknowledge

120

LINE INPUT #1,USERTXT$

:’Read text characters

130

PRINT USERTXT$

:’Print user text

The text on the screen of the oscilloscope will be printed, e.g.: Measurement 15

Note:

The ASCII presentation of the oscilloscope character set is

 

printed, e.g. :

 

• dec 25

= oscilloscope character Ω

 

• dec 25

= ASCII character

Example: (of setup text)

Read the text from setup register 7 of an oscilloscope:

90

DIM SETUP$

(22)

 

100

PRINT #1,"QT S 7"

:’Query setup Text command

110

GOSUB 1000

 

:’Sync on acknowledge

120

LINE INPUT

#1,SETUP$

:’Read text characters

130

PRINT SETUP$

:’Print setup text

Page 251
Image 251
Fluke PM3370B user manual Printed, e.g