6 - 18THE CPL PROTOCOL

PROGRAM SETUP

PS

Purpose:

To configure the oscilloscope using compact setup strings.

This Program Setup (PS) command and the Query Setup (QS) command can be used together to restore and retrieve a complete setup or partial of the oscilloscope.

The format of the programming strings must be the same as the format of the received setup strings. Each setup string describes a "node" in the oscilloscope setup.

It is possible to send back partial setups because the setup nodes can be send individually.

(Refer to "Query Setup" and section 6.8 SETUP)

Command:

"PS"

<count>

<node>

Response:

pds

 

count

 

 

pds

 

node

 

 

CR

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

send more nodes

 

 

 

number of node strings to follow.

string of hexadecimal characters (0..9,A..F) representing a setup node in the oscilloscope.

acknowledge

CR

Note: The <acknowledge> is sent after the setup has been completed.

Example:

100

PRINT

#1,"PS";

:’Setup command

110

PRINT

#1,N;

:’# of strings

120

FOR I=1 TO N

 

130PRINT #1," ";SETUP$[I]; :’Send strings sep’d by SP **)

140NEXT I

150

PRINT

#1,""

:’Send

CR

to end the setup

160

GOSUB

1000

:’Sync

on

acknowledge

**) These are the strings that are received after a Query Setup (QS) command

Page 235
Image 235
Fluke PM3370B user manual Program Setup, 18THE CPL Protocol, Pds Count Node