Q: How can I read the ADSmartIO version programmatically?
Here's a code sample for use in Windows CE that you can adapt for your needs:
UINT v = SIOReadDeviceVersion();
UINT part = SIOReadDevicePartType();
if ((part == 0x0000) || (v==0x00))
{
RETAILMSG(TRUE,(TEXT("Error: ADSmartIO not responding or not programmed\r\n")));
return 1;
}
else
{
RETAILMSG(TRUE,(TEXT("Device = %x, firmware version %x rev %c\r\n"),
part,SIOFirmwareVersion(),v));
}
------------------
ADS Knowledge Base