Chapter 04_2 daqadcarm to daqautozerocompensate, Daqadcarm – Measurement Computing Data Acquisition Systems rev.10.4 User Manual
Page 57

daqAdcArm
Also See: daqAdcDisarm
Format
daqAdcArm(DaqHandleT handle);
Purpose
daqAdcArm
arms an ADC acquisition by enabling the currently defined ADC configuration for an
acquisition.
Parameter Summary
Parameter Type
Description
handle DaqHandleT
Handle to the device for which the configured ADC acquisition is to be
armed
Parameter Values
handle:
obtained from the daqOpen function
Returns
DaqError
See Daq Error Table
For more details on error messages, please refer to the Daq Error Table.
Function Usage
ADC acquisition will occur when the trigger event (as specified by daqAdcSetTrig) is satisfied. The ADC
acquisition configuration must be specified prior to the daqAdcArm function. For a previously configured
acquisition, the daqAdcArm function will use the specified parameters. If no previous configuration was
given, or it is desirable to change any or all acquisition parameters, then those functions (relating to the desired
ADC acquisition configuration) must be issued prior to calling daqAdcArm. As a general rule the following
needs to be done before arming the acquisition:
Configure the channels to be scanned (daqAdcSetScan, daqAdcSetMux, daqSetOption)
Configure the acquisition rate or frequency (daqAdcSetFreq, daqAdcSetRate)
Configure the acquisition mode (daqAdcSetAcq)
Configure the acquisition buffer (daqAdcTransferSetBuffer)
Enable the data transfer (daqAdcTransferStart)
Any errors in these pre-requisites are deferred to the daqAdcArm call.
The daqAdcArm function can not be used in conjunction with daqAdcRd… functions .
These functions are single step functions and automatically arm the device.
The device acquisition configuration is programmed into the device upon execution of the
daqAdcArm
function. Consequently, some errors in programming the acquisition
configuration will be reported upon return of this function.
For more information on acquisition setup, see Seven Easy Steps to Data Acquisition in
Chapter 2.
Programmer’s Manual
908594
Daq API Command Reference 4.2-1