Daqadcsetacq, Daqadcsetclocksource – Measurement Computing WaveBook rev.3.0 User Manual
Page 205

WaveBook User’s Manual,
6-24-99
daqX API - Command Reference D-9
daqAdcSetAcq
DLL Function
daqAdcSetAcq(DaqHandleT handle, DaqAdcAcqMode mode, DWORD preTrigCount, DWORD
postTrigCount);
C
daqAdcSetAcq(DaqHandleT handle, DaqAdcAcqMode mode, DWORD preTrigCount, DWORD
postTrigCount);
Visual BASIC
VBdaqAdcSetAcq&(ByVal handle&, ByVal mode&, ByVal preTrigCount&, ByVal
postTrigCount&)
Delphi
daqAdcSetAcq(handle:DaqHandleT; mode:DaqAdcAcqMode; preTrigCount:DWORD;
postTrigCount:DWORD)
handle
Handle to the device for which the ADC acquisition is to be configured
mode
Selects the mode of the acquisition
preTrigCount
Number of pre-trigger ADC scans to be collected
Parameters
postTrigCount
Number of post-trigger ADC scans to be collected
Returns
DerrNoError
No error (see the API Error Codes table at the end of this chapter).
See Also
daqAdcArm, daqAdcDisarm, daqAdcSetTrig
Program References
ADCEX1.C, DACEX1.C, DYN32ENH.C, DAQEX.FRM (VB), ADCEX.PAS (Delphi)
Used With
All devices
Description
daqAdcSetAcq
allows you to characterize the acquisition mode and the pre- and post-trigger durations. The mode parameter describes
the style of data collection. The preTrigCount and postTrigCount parameters specify the respective durations, or lengths, of the pre-
trigger and post-trigger acquisition states.
Acquisition modes can be defined as follows:
DaamNShot
- Once triggered, continue acquisition until the specified post-trigger count has been satisfied. Once the post-trigger count
has been satisfied, the acquisition will be automatically disarmed.
DaamNShotRearm
- Once triggered, continue the acquisition for the specified post-trigger count, then re-arm the acquisition with the
same acquisition configuration parameters as before. The automatic re-arming of the acquisition may be disabled at any time by issuing a
daqAdcDisarm
.
DaamInfinitePost
- Once triggered, continue the acquisition indefinitely until the acquisition is disabled by the daqAdcDisarm
function.
DaamPrePost
- Begin collecting the specified number of pre-trigger scans immediately upon issuance of the daqAdcArm function. The
trigger will not be enabled until the specified number of pre-trigger scans have been collected. Once triggered, the acquisition will then
continue collecting post-trigger data until the post-trigger count has been satisfied. Once the post-trigger count has been satisfied, the
acquisition will be automatically disarmed.
daqAdcSetClockSource
DLL Function
daqAdcSetClockSource(DaqHandleT handle, daqAdcClockSource clockSource);
C
daqAdcSetClockSource(DaqHandleT handle, daqAdcClockSource clockSource);
Visual BASIC
VbdaqAdcSetClockSource&(ByVal handle&, ByVal clockSource&)
Delphi
daqAdcSetClockSource(handle:DaqHandleT; clockSource:DaqAdcClockSource)
handle
Handle to the device for which to set the ADC clock source.
Parameters
clockSource
Specifies the clock source for ADC acquisitions.
Returns
DerrNoError
No error (see the API Error Codes table at the end of this chapter).
See Also
daqAdcSetFreq
Program References
None
Used With
All devices
Description
daqAdcSetClockSource
sets up the clock source to drive ADC acquisition frequency.