User manual
24Page
Velleman Projects
3.17
Connected
Syntax
int Connected();
Result
int: The return value indicate the number of VM167 cards connected.
0: No cards connected
1: Card at the Card Address 0 found.
2: Card at the Card Address 1 found.
3: Cards at the Card Address 0 and 1 found.
Description
Checks that USB connection to the cards is valid.
Example
int Cards;
...
Button1_Click(..)
{
Cards = OpenDevices(); // open
...
}
...
if (Cards != Connected()) // check if card still connected
Button1_Click(sender, e); // if not, try to reconnect