TC-08: What is error code 16 from 'usb_tc08_get_last_error' ?

Post your C and C++ discussions here
Post Reply
ebakeman
Newbie
Posts: 1
Joined: Sat Nov 05, 2016 1:48 am

TC-08: What is error code 16 from 'usb_tc08_get_last_error' ?

Post by ebakeman »

Hi,
I poll the TC-08 via usb_tc08_get_single(). (Context: MSVC++, Windows10, usbtc08.dll 32-bit.)
At one point in a long session of polling, usb_tc08_get_single() returned error (0), and follow-up call to 'usb_tc08_get_last_error' returned error code 16.
However USB TC-08 Programmer's Guide "usb_tc08_get_last_error" entry lists error codes 1-15 -- not 16.
Can you provide a description for error code 16 ?
Thanks,
Eric Bakeman

Hitesh

Re: TC-08: What is error code 16 from 'usb_tc08_get_last_error' ?

Post by Hitesh »

Hi Eric,

An error code of 16 is USBTC08_ERROR_COMMUNICATION - the PC has lost communication with unit - this is in the USBTC08_ERROR set of enumerations in the usbtc08.h header file.

I will put in a request for the documentation to be updated.

Regards,

ebakeman
Newbie
Posts: 1
Joined: Sat Nov 05, 2016 1:48 am

Re: TC-08: What is error code 16 from 'usb_tc08_get_last_error' ?

Post by ebakeman »

Thanks Hitesh, I should have looked in the header in the first place. Cheers, Eric

Post Reply