Daqadcsetscan – Measurement Computing Personal Daq rev.6.0 User Manual
Page 145

Personal Daq User’s Manual
Appendix B,
887095
API Commands B-13
daqAdcSetScan
DLL Function
daqAdcSetScan(DaqHandleT handle, PDWORD channels, daqAdcGain *gains, PDWORD flags,
DWORD chanCount);
C
daqAdcSetScan(DaqHandleT handle, PDWORD channels, DaqAdcGain *gains, PDWORD flags,
DWORD chanCount);
Visual BASIC
VBdaqAdcSetScan&(ByVal handle&, channels&(), gains&(), flags&(), ByVal chanCount&)
Delphi
daqAdcSetScan(handle:DaqHandleT; channels:PDWORD; gains:daqAdcGainP; flags:PDWORD;
chanCount:DWORD)
Handle
Handle to the device for which ADC scan group is to be configured
Channels
An array of up to 512 channel numbers
*gains
An array of up to 512 gain values
Flags
Channel configuration flags in the form of a bit mask
Parameters
ChanCount
The number of values in the chans and gains arrays Valid values: 1 -512
DerrNotCapable
No high speed digital
DerrInvGain
Invalid gain
DerrInvChan
Invalid channel
Returns
DerrNoError
No error
See Also
daqAdcGetScan, daqAdcSetMux
Program References
ADCEX1.C, FREQEX1.C, PULSEEX1.C, MULTEX1.C, DAQEX.FRM (VB), DAQEX.PAS (Delphi)
Used With
All devices
Description
daqAdcSetScan
configures a scan group consisting of multiple channels. As many as 8192 channel entries can be made in the scan group
configuration. Any analog, frequency, counter or digital input channel can be included in the scan group configuration at any valid gain
setting. Scan group configuration may be composed of local or expansion module channels.
The channels parameter is a pointer to an array of up to 8192 channel/device values. Each entry represents a channel/device number in
the scan group configuration. Channel/device combinations can be entered multiple times at the same or different gain setting.
The gains parameter is a pointer to an array of up to 8192 gain settings. Each gain entry represents the gain to be used with the
corresponding analog channel entry. Gain entry can be any valid gain setting for the corresponding channel.
The flags parameter is a pointer to an array of up to 8192 channel flag settings. Each flag entry represents a 4-byte-wide bit map of
channel configuration settings for the corresponding channel entry. The channel flags can be used to set channel specific configuration
settings. See the Channel Configuration Flags Definition table for valid channel flag values.
The chanCount parameter 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.