Does anyone have a sample or snippet of code invoking usb_tc08_get_temp ? I am trying to write Delphi2010 code, but C++ would be fine too. My code keeps throwing "error 3", which indicates I have an argument(s) wrong in my call.

I don't know what the "buffer length" parameter should be - there's no note in the reference manual

if (tc08_handle > 0) then begin if (not in_timer) then begin in_timer := true; with insertTestdata DO BEGIN

/////Call to get temp ok:=usb_tc08_get_temp (tc08_handle,temp_buffer,times_buffer,500,overflow,1,0,0); if ok<0 then BEGIN errorCode:=usb_tc08_get_last_error(tc08_handle); showmessage ('Error '+inttostr (errorcode)); END; if (ok>0) then begin If NOT (isnan(temp_buffer)) THEN BEGIN Lab_probe.value:=temp_buffer; parambyname('Probe_temp').Value:=temp_buffer; temptimeseries.addXY(now,temp_buffer); END

Previously, I have opened the device, turned on channel 1 and started the streaming process with the USB_TC08_run command.

Buffer length informs the driver how big the buffers are. They needs to be large enough so that the buffers driver doesn't wrap, and overwrite, in the time that it takes to read and process values in your application.

In the .inc file, temp_buffer and times_buffer are declared as VAR types - the Pascal equivalent of pointers, I think, but I'll check in a minute. Given I want the readings as fast as the TC-08 can make 'em, buffer can be quite small then ?

if (tc08_handle > 0) then begin if (not in_timer) then begin with insertTestdata DO BEGIN ok:=usb_tc08_get_temp (tc08_handle,temp_buffer,times_buffer,9,overflow,0,0,0); if ok<0 then BEGIN errorCode:=usb_tc08_get_last_error(tc08_handle); showmessage ('Error '+inttostr (errorcode)); END; if (ok>0) then begin If NOT (isnan(temp_buffer[0])) THEN