beautypg.com

Daqadcsetacq – Measurement Computing TempBook rev.3.0 User Manual

Page 134

background image

11-10 daqCommand Reference (Enhanced API)

TempBook User’s Manual

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)

Parameters

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

postTrigCount

Number of post-trigger ADC scans to be collected

Returns

DerrNoError

- No error (also, refer to API Error Codes on page 11-39)

See Also

daqAdcArm, daqAdcDisarm, daqAdcSetTrig

Program References

ADCEX1.C, DACEX1.C, DYN32ENH.C, DAQEX.FRM (VB), ADCEX.PAS (Delphi)

Used With

All devices

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.