Chapter 4: PowerDAQ Software (SDK)
66
your buffer with samples. When it returns event from the
board you have to check what caused it
•
Check events
#
_PdGetUserEvents(…)
This function returns events for the subsystem specified
(AnalogIn). Your code should analyze them and make a
decision based on the result.
An Event word could contain following flags:
eFrameDone – get a frame of data
eBuff eStopped – acquisition is completed. All
data is stored in the buffer. Data is available for analysis.
eBufferError – data integrity was compromised because of
lack of performance or system latency while serving
interrupts (see note about interrupts). On board A/D FIFO
overflows. If error persists check interrupt settings and/or
purchase bigger A/D FIFO option.
•
Reset events
#
_PdSetUserEvents(…)
Call this function to notify the driver that events are
processed.
Restart
•
Stop asynchronous operation
#
_PdAInAsyncStop(…)
#
_PdAInAsyncTerm(…)
This call stops asynchronous operation. You need to call
these functions before you call _PdAInAsyncInit(…)and
_PdAInAsyncStart(…).You can start and restart acquisition
as many times as your application needs. Each time you
restart acquisition, board overwrites data in the buffer with
a new one.
De-Initialization
•
Stop asynchronous operation
#
_PdAInAsyncStop(…)
#
_PdAInAsyncTerm(…)
•
Release event object handle
#
_PdAInClearPrivateEvent(…)
•
Unregister and deallocate buffer
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: ......