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
Summary of Contents for PD2-MF
Page 5: ...Table of Contents iii Index 137 ...
Page 11: ...1 1 Introduction ...
Page 18: ......
Page 19: ...9 2 Installation and Configuration ...
Page 34: ......
Page 35: ...25 3 Architecture ...
Page 63: ...53 4 PowerDAQ Software Development Kit PD SDK ...
Page 106: ......
Page 107: ...97 5 Calibration ...
Page 109: ...99 A Appendix A Specifications ...
Page 110: ...Appendix A Specifications 100 ...
Page 112: ......
Page 113: ...103 B Appendix B Accessories ...
Page 118: ......
Page 119: ...109 C Appendix C Application Notes ...
Page 125: ...115 D Appendix D Warranty ...
Page 128: ......
Page 129: ...119 E Appendix E Glossary ...
Page 152: ......