beautypg.com

Daqadcsetacq – Measurement Computing Personal Daq rev.6.0 User Manual

Page 141

background image

Personal Daq User’s Manual

Appendix B,

887095

API Commands B-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 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.

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.

This manual is related to the following products: