Omega OMB-DAQ-54 User Manual page 136

Usb data acquisition modules
Table of Contents

Advertisement

Commands in Alphabetical Order
The following pages give the details for each API command. Listed in alphabetical order, each section
starts with a table that summarizes the main features of the command (C, Visual BASIC, and Delphi
language prototypes and their related parameters). An explanation follows with related information and in
some cases a programming example.
Note:
Commands, parameters, values, and code all use a bold mono-spaced Courier font to
distinguish characters and avoid ambiguity.
daqAdcAcqGetStat(DaqHandleT handle, PDWORD active, PDWORD preTrigCount, PDWORD
DLL Function
postTrigCount, PDWORD totalAvail, PDWORD bufCycles, DWORD bufPosition);
C
daqAdcAcqGetStat(DaqHandleT handle, PDWORD active, PDWORD preTrigCount, PDWORD
postTrigCount, PDWORD totalAvail, PDWORD bufCycles, DWORD bufPosition);
Visual BASIC
VBdaqAdcAcqGetStat&(ByVal handle&, ByRef active&, ByRef preTrigCount&, ByRef
postTrigCount&, ByRef totalAvail&, ByRef bufCycles&, ByRef bufPosition&)
daqAdcAcqGetStat(handle:DaqHandleT; var active:DWORD; var preTrigCount:DWORD; var
Delphi
postTrigCount:DWORD; var totalAvail:DWORD; var bufCycles:DWORD; var
bufPosition:DWORD)
Parameters
handle
active
preTrigCount
postTrigCount
totalAvail
bufCycles
BufPosition
DerrNoError
Returns
See Also
daqAdcTransferGetStat
Program References
None
All devices
Used With
Description
daqAdcAcqGetStat allows you to retrieve the current state of the acquisition in terms of the number of pre-trigger and post-trigger scans
acquired, the total amount of acquired scans available for transfer, the number of buffer processing cycles that have occurred, and the
current position in the acquisition buffer.
The active parameter will indicate the current state of the acquisition in the form of a bit mask. Refer to the ADC Acquisition/Transfer Active
Flag Definitions (in the ADC Miscellaneous Definitions table) for valid bit-mask states.
The preTrigCount and postTrigCount parameters return the total number of pre-trigger and post-trigger scans acquired respectively.
The totalAvail and bufCycles parameters indicate the number of available scans and the number of buffer processing cycles that
have occurred. The bufPosition parameter indicates the current position in the transfer buffer.
daqAdcArm(DaqHandleT handle);
DLL Function
daqAdcArm(DaqHandleT handle);
C
Visual BASIC
VBdaqAdcArm&(ByVal handle&)
daqAdcArm(handle:DaqHandleT)
Delphi
handle
Parameters
Returns
DerrNoError
See Also
daqAdcDisarm
ADCEX1.C, DAQEX.FRM (VB), DAQEX.PAS (Delphi)
Program References
Used With
All devices
Description
daqAdcArm allows you to arm an ADC acquisition by enabling the currently defined ADC configuration. ADC acquisition will occur when
the trigger event (as specified by daqAdcSetTrig) is satisfied. All ADC acquisition configuration information must be specified prior to the
daqAdcArm command. For a previously configured acquisition, the daqAdcArm command will use the specified parameters. If no
previous configuration was given, or it is desirable to change any or all acquisition parameters, then those commands relating to the desired
ADC acquisition configuration must be issued prior to calling daqAdcArm. Personal Daq will perform calibration upon execution of the
daqAdcArm command.
Personal Daq User's Manual
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
daqAdcAcqGetStat
Handle of device from which to obtain status.
Indicates the current state of the acquisition.
Indicates the number of pre-trigger scans acquired.
Indicates the number of post-trigger scans acquired.
Indicates the total number of available scans.
Indicates the number of buffer cycles processed.
Indicates the buffer position.
No error
daqAdcArm
Handle to the device to which configured ADC acquisition is to be armed
No error
Appendix B,
887095
API Commands
B-3

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Omb-daq-55Omb-daq-56

Table of Contents