Measurement-computing TempBook rev.3.0 Manuel d'utilisateur Page 132

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 166
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 131
11-8 daqCommand Reference (
Enhanced
API) TempBook Users Manual
daqAdcRdScan
DLL Function
daqAdcRdScan(DaqHandleT handle, DWORD startChan, DWORD endChan, PWORD buf,
DaqAdcGain gain, DWORD flags);
C
daqAdcRdScan(DaqHandleT handle, DWORD startChan, DWORD endChan, PWORD buf,
DaqAdcGain gain, DWORD flags);
Visual BASIC
VBdaqAdcRdScanN&(ByVal handle&, ByVal startChan&, ByVal endChan&, buf%(), ByVal
scanCount&, ByVal triggerSource&, ByVal rising&, ByVal level%, ByVal freq!,
ByVal gain&, ByVal flags&)
Delphi
daqAdcRdScanN(handle:DaqHandleT; startChan:DWORD; endChan:DWORD; buf:PWORD;
scanCount:DWORD; triggerSource:DaqAdcTriggerSource; rising:longbool;
level:WORD; freq:single; const gain:DaqAdcGain; flags:DWORD)
Parameters
handle
Handle to the device from which the ADC scan is to be acquired
startChan
The starting channel of the scan group
endChan
The ending channel of the scan group
buf
An array where the A/D scans will be placed
gain
The channel gain
flags
Channel configuration flags in the form of a bit mask.
Returns
DerrInvGain
- Invalid gain
DerrInvChan
-Invalid channel
DerrNoError
- No error (also, refer to
API Error Codes
on page 11-39)
See Also
daqAdcRdNScan, daqAdcSetMux, daqAdcSetClock, daqAdcSetTrig
Program References
DACEX.PAS (Delphi)
Used With
All devices
daqAdcRdScan
reads a single sample from multiple channels. This function will use a software
trigger to immediately trigger and acquire 1 scan consisting of each channel, starting with
startChan
and ending with
endChan
. The
gain
setting will be applied to all channels. See
ADC Flags Definition table for channel
flags
definitions.
Vue de la page 131
1 2 ... 127 128 129 130 131 132 133 134 135 136 137 ... 165 166

Commentaires sur ces manuels

Pas de commentaire