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 » Tue Mar 12, 2019 3:57 pm

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
PICO STAFF
PICO STAFF
Posts: 2855
Joined: Tue May 31, 2011 3:43 pm
Location: St. Neots, Cambridgeshire

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

Post by Hitesh » Wed Mar 20, 2019 12:27 pm

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,
Hitesh

Software Dev. Engineer

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 » Thu Mar 21, 2019 10:50 pm

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

Post Reply