LeCroy 8901A Operator's Manual page 18

Table of Contents

Advertisement

Operating Instructions
i
Read in the S status bytes
Send the GPIB serial poll disable command
Enable TR8837F for Reading
Clear LAM in TR8837F with F(10),A(0) ,N(3)
Execute CAMAC cycle by addressing 8901A to Talk
Enable read mode in the TR8837F with an F(17),
A(0),N(3)
Execute CAMAC cycle by addressing 8901A to Talk
Read Data
Set 8901A up for a high speed block read of
8-bit data words
Send F(2) to TR8837F - command to read data
Execute a CAMAC cycle and read all of the
data out (at end of data, module sets Q to 0,
the 8 901A then sends the response byte followed
by a 0 with the GPIB EOl bit set
Read Acquisition Parameters
Program the 8901A for a 16-bit data word
Tell the TR8837F to send its parameters
(F(0),A(0),N(0))
Execute CAMAC cycle and get 2 bytes containing
its acquisition parameters and the CAMAC
response byte
IN r,Ll,L2,L3,L4
SPD
OUT 10,0,3
TALK 1
OUT 17,0,3^
TALK
OUT 105
OUT 2,0,3
IN bl,...,bn,r,0
OUT 98
OUT 0,0,3
IN bl,b2,r
The following are working examples of programming the LeCroy
Model TR8828C 200 megasample/sec or TR8818 100
megasample/sec modular recorders using the Model 8901A and
the HP9836 desktop computer. HP BASIC Version 3.0 was
used for writing the code. Additional and complete function
commands for the digitizers and 890lA interface are contained
in the respective manuals.
Highlights of 8901A and Digitizer Programming:
The 8901A was set to a device address of 1 and called from HP
code as device 701, as shown below:
OUTPUT 701 USING
B"; 17, 0, 8
The
B" sets the format of data as BINARY. In this exam
ple, the F=17 command A=0, N=slot 8 sets the data pointer
back to the beginning of memory prior to reading out memory.
Sending a command to a digitizer is done the CAMO subrou
tine, lines 10000 to 10091. Note that upon programming a
14

Advertisement

Table of Contents
loading

Table of Contents