Hi,
I'm currently writing some software to speak to 1x ADC 20 & 3x TC-08s. I"d like to obtain the serial numbers for each TC-08 so that I can make sure that the correct logger is enabled for the correct purpose each and every time. However, using VEE 7.5, I keep getting this error message.
The strange part is that every other function in the SDK has usb_tc08_ at the start of the function name except this one. If I try to call the function by the usb_tco8 name, an unknown function error pops up. The function usb_tc08_get_unit_info seems to be missing from the library too. What's going on here?
I'm using SDK 1.0.0, but after checking this website, it seems to be the latest version available. Anyone got any pointers?
Cheers,
Found the problem. There's an error in the usb_tc08.vh file, which incorrectly removes the tc08 part of the name from the header, which is stopping the call from completing successfully. TO fix, open up the usb_tc08.vh file and change this line:
short __stdcall usb_get_formatted_info (short handle,
char* unit_info,
short string_length);
to this:
short __stdcall usb_tc08_get_formatted_info (short handle,
char* unit_info,
short string_length);
Save the file, and now call the correctly named function. Pico engineers, you might want to update the SDK with this fix, and any others that may have been found by others in the past.
One thing I noticed though about the get formatted info function, is that the output string contains some non-printable characters between the serial number and the calibration date. It threw me because when I was trying to test for a certain s/n, the test kept failing even though they matched perfectly. Turned out that 2 exact same strings differed by 2 invisible characters. I've worked around this by only asking vee to get the first 9 characters of the serial number, and this works for the 3 units I have here. I have absolutely no idea if it will hold true for all tc08 units though. Thoughts?
Cheers,