I need to run a program in C or C + + very easy for TC-08 without interfaces. In fact, I would like to use it with Matlab (or another program like it).
The idea is to have a program running with MsDos and returns the output value of termocouple I chose.
The example is a Windows example and will have been created in Visual Studio. You also need to include the resources in your project. The SDK includes both the resource script (.rc) and the compiled resource file (.res).
I don't know much about Dev-C++ and how easy it is to include the resource files.
The API is quite straightforward and you don't need to compile it to understand the calls, so you could just use the source as a guide for your console application.
Thank you. It is possible now to have the values of temperatures of my TC08.
What I want to do is to execute my C program (with a trigger) and save my data with Matlab each 0.5 s, for example. But one execution of my new program during more than 1.5s, which is too long.
Is it possible to create 3 programs (exe) like this
Open TC08 (drivers) (at the end pico is still open)
Many times I can have my temperatures
Close TC08
The idea is to not open all drivers each time I want a temperature.
You can't have multiple programs accessing the TC-08 at the same time.
Also, remember that the conversion time for the TC-08 is 100 ms plus 100 ms for each enabled channel. So if you have all 8 channels enabled, it will take 900 ms.
The C example uses usb_tc08_get_single. For faster sampling, you should use streaming mode. See section 3.2.2 of the manual. In streaming mode, the driver continually streams data to its internal buffer and you can get data from this buffer periodically using usb_tc08_get_temp