6 - 28

THE CPL PROTOCOL

meas_type

string of characters, specifying the type of the measured value,

 

e.g. "Tr"

meas_value

string of characters, specifying the measured value in floating

 

point notation, e.g. "98934E-09"

suffix_unit

string of characters, specifying the unit of the measured value:

 

"V", "s" or "Hz"

Example: (of a single measurement)

 

100

PRINT

#1,"QM",21

:’Query for frequency

 

 

 

measurement

110

GOSUB

1000

:’Sync on acknowledge

120INPUT #1,TYPE$,MEAS$,SUFFIX$ :’Read measured frequency

130PRINT "Measurement: ";TYPE$;MEAS$;SUFFIX$

:’Print measured frequency

Example: (of multiple measurements)

100

PRINT #1,"QM",10,"L"

:’Query for delta-

 

 

voltage measurement

110

GOSUB 1000

:’Sync on acknowledge

120

INPUT #1,MEAS$

:’Read measured

 

 

delta-voltage

130

PRINT "Measurement

:";MEAS$:’Print measured

 

 

delta-voltage

140

IF INKEY$="" THEN GOTO 120

:’Do next measurement

 

 

until a key is pressed

150

PRINT #1,CHR$(27)

:’Send ESC character

Page 245
Image 245
Fluke PM3370B user manual Measvalue, Point notation, e.g E-09, Or Hz, Example of a single measurement