Daqadcgetfreq, Daqadcgetscan – Measurement Computing TempBook rev.3.0 User Manual
Page 129

TempBook User’s Manual
daqCommand Reference (Enhanced API) 11-5
daqAdcGetFreq
DLL Function
daqAdcGetFreq(DaqHandleT handle, PFLOAT freq);
C
daqAdcGetFreq(DaqHandleT handle, PFLOAT freq);
Visual BASIC
VBdaqAdcGetFreq&(ByVal handle&, freq!)
Delphi
daqAdcGetFreq(handle:DaqHandleT; var freq:single)
Parameters
handle
Handle to the device for which to get the current frequency setting
freq
A variable to hold the currently defined sampling frequency in Hz
Valid values:
100000.0 - 0.0002
Returns
DerrNoError
- No errors (also, refer to API Error Codes on page 11-39)
See Also
daqAdcSetFreq, daqAdcSetClock
Program References
None
Used With
All devices
daqAdcGetFreq
reads the sampling frequency of the pacer clock.
Note: daqAdcSetFreq assumes that the 1 MHz/10 MHz jumper is set to the default position of 1
MHz.
daqAdcGetScan
DLL Function
daqAdcGetScan(DaqHandleT handle, PDWORD channels, DaqAdcGain *gains, PDWORD
flags, PDWORD chanCount);
C
daqAdcGetScan(DaqHandleT handle, PDWORD channels, DaqAdcGain *gains, PDWORD
flags, PDWORD chanCount);
Visual BASIC
VBdaqAdcGetScan&(ByVal handle&, channels&(), gains&(), flags&(), chanCount&)
Delphi
daqAdcGetScan( handle:DaqHandleT; channels:PDWORD; gains:DaqAdcGainP;
flags:PDWORD; chanCount:PDWORD )
Parameters
handle
Handle to the device for which to get the current scan configuration.
channels
An array to hold up to 512 channel numbers or 0 if the channel information is not desired.
*gains
An array to hold up to 512 gain values or 0 if the channel gain information is not desired
flags
Channel configuration flags in the in the form of a bit mask
chanCount
A variable to hold the number of values returned in the chans and gains arrays
Returns
DerrNoError
- No error (also, refer to API Error Codes on page 11-39)
See Also
daqAdcSetScan, daqAdcSetMux
Program References
None
Used With
All devices
daqAdcGetScan
reads the current scan group consisting of all channels currently configured. The
returned parameter settings directly correspond to those set using the daqAdcSetScan function. For
further description of these parameters, refer to daqAdcSetScan. See ADC Flags Definition
table for channel flag definitions.