![Agilent Technologies E1330B Скачать руководство пользователя страница 36](http://html.mh-extra.com/html/agilent-technologies/e1330b/e1330b_users-manual-and-scpi-programming-manual_2867439036.webp)
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:DATA
n
[: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:DATA
n
[:type]:HANDshake:DELay
<
time
>
[SOURce:]DIGital:HANDshake
n
DELay
<
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”.
Содержание E1330B
Страница 2: ......
Страница 10: ...8 Notes ...
Страница 11: ...9 Notes ...
Страница 12: ...10 Notes ...
Страница 25: ...Configuring the Agilent E1330B Digital I O Module 23 Chapter 2 Figure 2 6 J1 and J2 Connector Pinouts ...
Страница 32: ...30 Configuring the Agilent E1330B Digital I O Chapter 2 Notes ...
Страница 42: ...40 Using the Agilent E1330B Digital I O Module Chapter 3 Notes ...
Страница 58: ...56 Understanding the Agilent E1330B Digital I O Module Chapter 4 Notes ...
Страница 104: ...102 Agilent E1330B Digital I O Module Command Reference Chapter 5 Notes ...
Страница 146: ...144 Error Messages Appendix C Notes ...