User manual
10Page
Velleman Projects
3.3
ReadAnalogChannel
Syntax
int ReadAnalogChannel( int CardAddress, int Channel);
Parameters
CardAddress: The address of previously opened card.
Channel: Value between 1 and 5 which corresponds to the AD channel whose status is to be read.
Result
int: The corresponding Analog to Digital Converter data is read.
Description
The input voltage of the selected 10-bit Analog to Digital converter channel is converted to a value
which lies between 0 and 1023.
Example
int a5;
a5 = ReadAnalogChannel(CardAddress, 5);
label19->Text = a5.ToString();