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(…)
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: ......