Daqadcgetfreq, Daqadcgetscan – Measurement Computing WaveBook rev.3.0 User Manual
Page 201
![background image](https://www.manualsdir.com/files/797847/content/doc201.png)
WaveBook User’s Manual,
6-24-99
daqX API - Command Reference D-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)
handle
Handle to the device for which to get the current frequency setting
Parameters
freq
A variable to hold the currently defined sampling frequency in Hz. Valid values: 100000.0 -
0.0002
Returns
DerrNoError
No error (see the API Error Codes table at the end of this chapter).
See Also
daqAdcSetFreq, daqAdcSetClock
Program References
None
Used With
All devices
Description
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 )
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
Parameters
chanCount
A variable to hold the number of values returned in the chans and gains arrays
Returns
DerrNoError
No error (see the API Error Codes table at the end of this chapter).
See Also
daqAdcSetScan, daqAdcSetMux
Program References
None
Used With
All devices
Description
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.