Chapter 4: PowerDAQ Software (SDK)
61
Method A. Single scan operation
See SDK Examples
SimpleAin.c, simplescan.pas, simplescan.bas,
vm64.pas, voltmeter.vbp, Vl16.cpp, PDGABoards.cpp
This method is useful when you need to get one set of data points
(one scan). This method allows you to acquire up to 100 scans per
second, depending on the channel list size and maximal board speed.
For example, applications such as a multi-channel voltmeter or
sensor/thermocouple monitor are best suited for this method.
Acquisition can be initiated by software command or external CL Clock
signal. This method does not require buffering because the maximum
number of samples acquired is less then the minimal size of the ADC
FIFO.
Initialization – Method A
Reset the board
PdAInReset(…)
Set up configuration
_PdAInSetCfg(…)
Analog input configuration bits are defined in pdfw_def.h file.
Recommended configuration for Method A is:
DwCfg = (AIB_CVSTART0 | AIB_CVSTART1) for software clock
DwCfg = (AIB_CVSTART0 | AIB_CVSTART1 | AIB_CLSTART1) for
external clock
Set up channel list (which can contain one or more scan
sequences)
_PdAInSetChList(…)
Channel list is an array of 32-bit words. See channel list entry format in
“Functional Overview” chapter of this manual
Enable conversions
_PdAInEnableConv(…) with dwEnable = 1
_PdAInSwStartTrig(…) issue start trigger
If software clock is selected, clock the first scan
_PdAInSwClStart(…)
Содержание 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: ......