beautypg.com

Measurement Computing Data Acquisition Systems rev.10.4 User Manual

Page 99

background image

The chanCount parameter is not a configuration parameter in the same sense as the channels, gains and
flags

parameters—it simply represents the total number of channels in the scan group configuration. This

number also represents the number of entries in each of the channels, gains and flags arrays.

To illustrate how the scan group might be configured, suppose that we would like to configure a scan sequence
in the following order:

Scan Location 0 --- an analog, bipolar, and single-ended channel with gain x 1, using channel 3
Scan Location 1 --- a 16-bit HS digital channel on P3
Scan Location 2 --- the lower 16-bits on counter 0 used (with scan location 3) as a cascaded 32-bit

counter for totalizing

Scan Location 3 --- the upper 16-bits on counter 2 used (with scan location 2) as a cascaded 32-bit

counter for totalizing

The following table shows how an array with the above specifications might be defined. Note that, in this
example, there are 4 channel scan locations (chanCount=4) rather than 3 since the 32-bit cascaded counter
occupies two scan locations.

Array

Location

Scan

Location

channels

Array Elements

gains

Array Elements

flags

Array Elements

0 0 channels(0) = 3

gains(0) = DgainX1

flags(0) =
DafAnalog + DafBipolar +
DafSingleEnded

1 1 channels(1) = 0

gains(1) = N/A

flags(1) = DafP3Local16

2 2 channels(2) = 0

gains(2) = N/A

flags(2) =
DafCtr32Low + DafCtrTotalize

3 3 channels(3) = 2

gains(3) = N/A

flags(3) =
DafCtr32High +
DafCtrTotalize

Programmer’s Manual

908594

Daq API Command Reference 4.2-43