Commands in alphabetical order, Daqadcacqgetstat, Daqadcarm – Measurement Computing Personal Daq rev.6.0 User Manual
Page 135

Personal Daq User’s Manual
Appendix B,
887095
API Commands B-3
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
DLL Function
daqAdcAcqGetStat(DaqHandleT handle, PDWORD active, PDWORD preTrigCount, PDWORD
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&)
Delphi
daqAdcAcqGetStat(handle:DaqHandleT; var active:DWORD; var preTrigCount:DWORD; var
postTrigCount:DWORD; var totalAvail:DWORD; var bufCycles:DWORD; var
bufPosition:DWORD)
handle
Handle of device from which to obtain status.
active
Indicates the current state of the acquisition.
preTrigCount
Indicates the number of pre-trigger scans acquired.
postTrigCount
Indicates the number of post-trigger scans acquired.
totalAvail
Indicates the total number of available scans.
bufCycles
Indicates the number of buffer cycles processed.
Parameters
BufPosition
Indicates the buffer position.
Returns
DerrNoError
No error
See Also
daqAdcTransferGetStat
Program References
None
Used With
All devices
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
DLL Function
daqAdcArm(DaqHandleT handle);
C
daqAdcArm(DaqHandleT handle);
Visual BASIC
VBdaqAdcArm&(ByVal handle&)
Delphi
daqAdcArm(handle:DaqHandleT)
Parameters
handle
Handle to the device to which configured ADC acquisition is to be armed
Returns
DerrNoError
No error
See Also
daqAdcDisarm
Program References
ADCEX1.C, DAQEX.FRM (VB), DAQEX.PAS (Delphi)
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.