![ICP DAS USA PCI-82x Series User Manual Download Page 77](http://html1.mh-extra.com/html/icp-das-usa/pci-82x-series/pci-82x-series_user-manual_3695537077.webp)
PCI-82x Series Cards
Multifunction Boards
User Manual, Ver. 1.5, Jan. 2017, PMH-024-15, Page: 77
fSamplingRate
[Input]
Sets the total sampling rate in Hz
dwDataCountPerChannel
[Input]
The A/D data values for every Analog Input channels
Returns:
Appendix A1-1 Error Code Definitions
Example:
wChannels = 3
//Scan 3 channels
wChannelList[0] = 2
//The first channel to be scanned is AI Channel 2
wChannelList[1] = 5
//The second channel to be scanned is AI Channel 5
wChannelList[2] = 3
//The third channel to be scanned is AI Channel 3
wConfigList[0] = 2
//The input range for the first channel is +/- 2.5 V
wConfigList[1] = 0
//The input range for the second channel is +/- 10 V
wConfigList[2] = 1
//The input range for the third channel is +/- 5 V
fSamplingRate = 30000
//The total sampling rate =30 kHz,
//Therefore, each channel is (fSamplingRate/wChannels) Hz
30 kHz/3 = 10 kHz
dwDataCountPerChannel = 5
Refer to the following table for details of where the data is stored in the driver buffer:
0
CH2
Val0
1
CH5
Val0
2
CH3
Val0
3
CH2
Val1
4
CH5
Val1
5
CH3
Val1
CH2
CH3
CH5
CH2
CH3
CH5