On my laptop I install SDK 7.1 without any problem, so this is definitely something I'll have to speak to IT about. The library is loaded just fine, but now at the calllib stage to open communications comes up with a 0..

Part of the problem I'd had was with using legacy calls from a previous version of the DLL's, but now it more or less seems to be working apart from a couple of niggling things On my laptop running W7HPx64 with compilers properly installed I can now connect properly. libisloaded works fine, so on the work PC obviously there are some compiler configuration issues that I need to see IT about, but that's my problem

Some things work and some things don't (all assume a prefix of "usb_tc08_")

get_formatted_info - works, but causes MATLAB to crash if called repeatedly within a short window of time (say, 5 times in a second).

Things that don't:

get_unit_info - gives an error (0) and an empty structure if using struct([]) (although each field has the right name and some dimensions) and get_last_error says no errors have happened - using libpointer('tUSBTC08InfoPtr') gives the right fieldnames and the right datatypes but all are empty

libsfunctionsview shows up a method of "get_info2" which shouldn't be defined and when you try and call it it doesn't appear to exist.

The programming guide says it should be a char pointer (a 1xn char in matlab), where as libfunctionsview says that the unit_info argument should be a cstring (i.e. not a pointer), which is how your code is working. For what its worth, here's what I was doing:

That works for me too - I didn't realise I had to more fully define the structure before populating it. Thanks for your help! Presumably this header file will get rolled into future SDK releases so other people don't run into the same problems?

We are in the process of developing generic MATLAB Instrument Drivers for our products, but in the meantime we'll look to provide some helper files in the SDK for Customers looking to create their own scripts.