User manual

18Page
Velleman Projects
3.11
ReadDigitalChannel
Syntax
bool ReadDigitalChannel(int CardAddress, int Channel);
Parameters
CardAddress: The address of previously opened card.
Channel: Value between 1 and 8 which corresponds to the input channel whose status is to be read.
Result
bool: TRUE means that the corresponding digital input of the card is HIGH.
FALSE means that the input is LOW.
Description
The status of the selected Input channel is read.
Example
if(ReadDigitalChannel(CardAddress, 3))
label19->Text = "3: On";
else
label19->Text = "3: Off";