User`s manual

34 Using the Agilent E1330B Digital I/O Module
Chapter 3
Setting the Handshake Mode
Handshaking ensures correct transfer of data between devices. You must set
both the mode and the timing to establish correct handshaking. Most
handshake modes use the FLG and CTL lines to control the data transfer.
SCPI commands support the following modes of handshaking:
-- LEADing Edge
-- TRAiling Edge
-- PULSe
-- PARTial
-- STRobe
-- NONE
These SCPI commands set the type of handshake mode used:
[SOURce:]DIGital:DATAn[:type]:HANDshake[:MODE] <mode>
[SOURce:]DIGital:HANDshake
n[:MODE] <mode>
Handshake Timing Some handshake modes require that a timing value be set.Primarily, the
timing applies to only output functions (the exception is STRobe Input
handshaking mode). These SCPI commands set the timing of the handshake
(where timing applies):
[SOURce:]DIGital:DATAn[:type]:HANDshake:DELay <time>
[SOURce:]DIGital:HANDshakenDELay <time>
Example 10 ASSIGN @Dio TO 70918
20 DIM Hand$ [4]
30 Hand$ = "LEAD"
40 Delay = 0.015
50 OUTPUT @Dio;"DIG:DATA0:BYTE:HAND "&Hand$
60 OUTPUT@Dio;"DIG:DATA0:BYTE:HAND:DEL ";Delay
70 END
Sets the 8-bit port 0 handshake mode to the LEADing Edge handshake mode
and sets the output timing handshake delay to 0.015 seconds.
Detailed descriptions of the handshake modes, timing diagrams, and the use
of the FLG and CTL lines are given in Chapter 4 —“Understanding the
Agilent E1330B Digital I/O Module”.