Instruction manual
AMPDIO DRIVERS
Page 226
AIOcountADCgroups
See Also AIOgetADCpretriggerCount
AIOsetADCconvSource
6.4.19.6 Get ADC Pre-trigger Count — AIOgetADCpretriggerCount
Gets the pre-trigger count for the ADC start acquisition trigger when the start type has been
set to START_NOW. This gives the number of samples that were acquired before the trigger
occurred, or the number of samples that have been acquired so far if the trigger has not
occurred yet. The function return value indicates whether the trigger has occurred.
If the acquisition trigger start type was set to START_TRIG, the pre-trigger count will be 0
(except in non-continuous mode when the buffer length is not an integer multiple of the
number of enabled channels). The function return value still indicates whether the trigger has
occurred.
Note that in non-continuous mode, the start acquisition trigger is applied at the start of each
buffer, so the return value is only valid at certain points in time. In non-continuous mode it is
best to call this function from the callback function (if using callbacks) or following a call to the
TCdriveNCBufferUserInterrupt function (if not using callbacks).
SUPPORTED IN VERSION 4.42 ONWARDS.
i = AIOgetADCpretriggerCount (h, Group, pCount)
where h short: board handle as issued by the
registerBoardEx function.
Group short: ADC channel group.
pCount pointer to unsigned long: pointer to a
variable to be set to the pre-trigger count
value.
Returns short: FALSE (= 0) if the start acquisition trigger has not occurred yet.
TRUE (= 1) if the start acquisition trigger has occurred.
or ERRHANDLE
ERRCHAN
ERRDATA
ERRSUPPORT
Prior Calls registerBoardEx
AIOcountADCgroups
AIOsetADCstartAcquisitionTrigger
TCsetBufferUserInterruptAIO
TCsetNCBufferUserInterruptAIO
enableInterrupts
See Also