6 - 32 THE CPL PROTOCOL
Example:
(Complete setup query)
90 DIM SETUP$[25] :’Reserve space
100 PRINT #1,"QS" :’Send command
110 GOSUB 1000 :’Sync on acknowledge
120 INPUT #1,N :’Read number of node strings
130 FOR I=1 TO N
140 INPUT #1,SETUP$[I] :’Read all node strings
150 PRINT "N= ";I;SETUP$[I]
160 NEXT I
example response: (PM3394)
11,0106hlhl.....,0206hlhl......,0306hlhl......CR
**
)
**
) These SETUP$ array elements can be stored and sent back later to the
oscilloscope with the "PS" command.
(Optional setup query to read only one
setup node)
100 PRINT #1,"QS";4 :’Query setup node 4
110 GOSUB 1000 :’Sync on acknowledge
120 INPUT #1,N :’Read number of setup nodes
130 INPUT #1,SETUP$ :’Read the setup node
140 PRINT SETUP$ :’Print the setup string