Measurement-computing TempBook rev.3.0 Instrukcja Użytkownika Strona 138

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 166
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 137
11-14 daqCommand Reference (
Enhanced
API) TempBook Users Manual
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)
Parameters
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
chanCount
The number of values in the chans and gains arrays
Valid values:
1 -512
Returns
DerrNotCapable
- No high speed digital
DerrInvGain
- Invalid gain
DerrInvChan
- Invalid channel
DerrNoError
- No error (also, refer to
API Error Codes
on page 11-39)
See Also
daqAdcGetScan, daqAdcSetMux
Program References
ADCEX1.C, DYN32ENH.C, DAQEX.FRM (VB), ADCEX.PAS (Delphi)
Used With
All devices
DaqAdcSetScan
configures an A/D scan group consisting of multiple channels. As many as 512
channel entries can be made in the A/D scan group configuration. Any analog 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 channels and (for the DaqBook/DaqBoard) the high-speed digital
I/O port.
The
channels
parameter is a pointer to an array of up to 512 channel values. Each entry
represents a channel number in the scan group configuration. Channels can be entered multiple
times at the same or different gain setting.
The
gains
parameter is a pointer to an array of up to 512 gain settings. Each gain entry represents
the gain to be used with the corresponding 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 512 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 (such as polarity).
See the ADC 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.
Przeglądanie stron 137
1 2 ... 133 134 135 136 137 138 139 140 141 142 143 ... 165 166

Komentarze do niniejszej Instrukcji

Brak uwag