Chapter 4: PowerDAQ Software (SDK)
89
#
_PdGetUserEvent(…) should return eDInEvent flag
in the status word.
•
Read status of digital input latch
#
_PdDInGetStatus(…) function returns current state
of the digital input lines in a one byte and digital
input latch register in the other byte. If specified
edge was detected, the latch contains “1” in the
appropriate bit.
•
Clear status of digital input latch
#
_PdDInClearData(…) clears latch register and re-
enables edge detection on the line which previously
caused an event
•
Re-enable events
#
_PdSetUserEvent(…) use DigitalIn as a subsystem
name. There is only one digital input event defined
– eDInEvent. It means that one or more edges
were detected
De-Initialization
•
Disable interrupts if there is no other subsystem running
#
_PdAdapterEnableInterrupt(…) with dwEnable = 0
•
Release event object and clear user-level events
#
_PdDInClearPrivateEvent(…) release the event object
#
_PdClearUserEvent(…) use DigitalIn as a subsystem
name
•
Reset digital input to clear configuration and latch register
#
_PdDInReset(
…
)
The PowerDAQ 16-bit digital input/output subsystem is easy to use and
a powerful tool to use in any data acquisition and control applications.
Содержание PD2-MF
Страница 5: ...Table of Contents iii Index 137 ...
Страница 11: ...1 1 Introduction ...
Страница 18: ......
Страница 19: ...9 2 Installation and Configuration ...
Страница 34: ......
Страница 35: ...25 3 Architecture ...
Страница 63: ...53 4 PowerDAQ Software Development Kit PD SDK ...
Страница 106: ......
Страница 107: ...97 5 Calibration ...
Страница 109: ...99 A Appendix A Specifications ...
Страница 110: ...Appendix A Specifications 100 ...
Страница 112: ......
Страница 113: ...103 B Appendix B Accessories ...
Страница 118: ......
Страница 119: ...109 C Appendix C Application Notes ...
Страница 125: ...115 D Appendix D Warranty ...
Страница 128: ......
Страница 129: ...119 E Appendix E Glossary ...
Страница 152: ......