Chapter 4: PowerDAQ Software (SDK)
87
Configuration word is explained in Digital I/O
Architecture section of this manual.
•
Read status of digital input latch
#
_PdDInGetStatus(…)function returns current state
of the digital input lines in a single byte and digital
input latch register in the other byte. If the
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
Acquiring digital signals as analog.
In an application
where you need to acquire some digital signals along
with analog input you can build a simple D/A converter.
Using a resistor ladder creates a simple D/A converter. It
allows you to convert up to 8 digital input lines into
analog signal for reliable detection using a 12-bit
PowerDAQ board.
TIP
Содержание 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: ......