Chapter 4: PowerDAQ Software (SDK)
86
Digital Input/Output
Subsystems
The digital input/output subsystem can be used in two ways.
Method A: 16-bit digital input and digital output polled configuration.
Note: The digital subsystem has no clocked operations available.
Method B: Set up an input configuration and the digital input fires an
event when it detects a specified edge on the selected input line. The
eight lower lines are edge-sensitive.
Method A. Polled I/O
See SDK Example
SimpleTest.dpr
Initialization
•
Reset digital subsystem
#
_PdDOutReset(
…
)sets output lines to logical zero
#
_PdDInReset(
…
)clears latch and configuration
register
Input/Output
•
Read digital inputs
#
_PdDInRead(…)
•
Write digital outputs
#
_PdDOutWrite(…)
Set up digital input configuration
•
Set up edge-sensitivity configuration
#
_PdDInSetCfg(…)use this function to specify an
input line and an edge to be detected.
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: ......