Instruction manual
AMPDIO DRIVERS
Page 223
registerBoardEx function.
Group short: ADC channel group.
Chan short: selected channel.
Returns short: OK
or ERRHANDLE
ERRCHAN
Prior Calls registerBoardEx
AIOcountADCgroups
AIOcountADCchans
See Also AIOsetADCconvSource
AIOstartADCconversion
AIOgetADCdata
6.4.19.3 Software-trigger ADC Conversion — AIOstartADCconversion
Starts software-triggered A-to-D conversion for the currently multiplexed channel on a
specified channel group.
SUPPORTED IN VERSION 4.00 ONWARDS.
i = AIOstartADCconversion (h, Group)
where h short: board handle as issued by the
registerBoardEx function.
Group short: ADC channel group.
Returns short: OK
or ERRHANDLE
ERRCHAN
Prior Calls registerBoardEx
AIOcountADCgroups
AIOsetADCconvSource
AIOsetADCmultiplexer
See Also AIOgetADCdata
6.4.19.4 Read ADC Data — AIOgetADCdata
Reads data from an ADC channel group’s ADC port and cooks it. The data read is assumed
to be from the channel currently multiplexed at the time of the previous software-triggered
conversion or assumed time of the previous external-triggered or timer-triggered conversion.
(This will be inaccurate if no conversion has been triggered since the last time the multiplexer
was changed.) The user can alter the multiplexer in the period between starting a software-
triggered interrupt and reading the value back, if desired.
SUPPORTED IN VERSION 4.00 ONWARDS.
i = AIOgetADCdata (h, Group, pData)