LeCroy 8901A Operator's Manual page 17

Table of Contents

Advertisement

Operating Instructions
with bits X and Q). It includes addressing the appropriate
8901A to Talk, reading the data byte(s) into the computer, and
then sending the GPIB Untalk.
TALK
indicates sending out the GPIB Talk address to the specific
8901 A. This is used to execute a CAMAC cycle when no data
is to be returned. The "IN" command may be substituted if
desired (e.g., to allow monitoring the CAMAC response bits X
and Q).
For purposes of this example, assume that the Model 8901A is
at GPIB address 1 and the Model TR8837F is in slot 3.
Initialize the Instruments
Initialize the crate by sending CAMAC Z
Execute CAMAC cycle by addressing 8901A to Talk
Program instrument's parameters by sending F(16),
A(0), N(3), dl, d2 (dl, d2 are the parameter
settings - see TR8837F manual for details)
Program 8901A to return 8 bits of data and the
CAMAC response byte
Execute CAMAC cycle and get CAMAC response
Enable LAM
Program 8 901A to set SRQ on LAM
Enable TR8837F to generate LAM by sending
F(26) (note that since the A and N have not
changed it is not necessary to resend them)
Execute CAMAC cycle by addressing 8901A to Talk
Initiate Sampling
Initiate sampling in the TR8837F with a F(9),
A(0),N(3) .
Execute CAMAC cycle by addressing 8901A to Talk
Wait for Trigger
At this point, the TR8837F is waiting for a trigger
(either external or from an F(25) sent to it). After the
trigger occurs and the module is finished acquiring data,
it will generate a service request.
Perform a serial poll to determine which instrument set LAM
(assuming there is more than one).
Disable the 8 901A from generating another SRQ
Send the GPIB serial poll enable command
GPIB bus transfers
(bytes in decimal)
OUT 33
TALK
OUT 16,0,3,dl,d2
OUT 97
IN bl, r
OUT 65
OUT 26
TALK
OUT 9,0,3
TALK
OUT 64
SPE
13

Advertisement

Table of Contents
loading

Table of Contents