User manual

23Page
Velleman Projects
3.16
ReadCounter
Syntax
unsigned int ReadCounter(int CardAddress);
Parameter
CardAddress: The address of previously opened card.
Result
unsigned int: The content of the 32 bit pulse counter.
Description
The function returns the status of the 32 bit pulse counter.
The counter counts the pulses fed to the digital terminal number 1. Both input and output pulses are
counted. The counter increments on the rising edge.
Example
TextBox1->Text = (ReadCounter(CardAddress)).ToString();