Understanding usb_tc08_get_temp

Post general discussions on using our drivers to write your own software here
Post Reply
pdr0663
User
User
Posts: 4
Joined: Wed Jun 27, 2007 9:52 am

Understanding usb_tc08_get_temp

Post by pdr0663 »

I'm having trouble getting my head around how usb_tc08_get_temp works. I have mastered the usb_tc08_get_single routing, but I don't understand how usb_tc08_get_temp.

After using usb_tc08_run, I assume that the driver is logging and storing values in its internal buffer. What happens when get_temp is called? Are the entire contents of the driver's buffer copied to my buffer, or is my buffer incrementally added to? Do I then need buffers long enough to hold an entire logging session? I don't want to limit the user to a number of samples. The routine I am writing is in VBA, and I am storing values on the fly in an Excel sheet.

The example in the manual does not say how the array is populated, nor how the arrays are purged, if at all.

Any help appreciated.

Regards,

Paul

pdr0663
User
User
Posts: 4
Joined: Wed Jun 27, 2007 9:52 am

Post by pdr0663 »

Sorry about the funny grammar in my post. I was constantly interrupted!
:wink:

ziko
Advanced User
Advanced User
Posts: 1705
Joined: Fri Dec 01, 2006 10:03 am
Location: St Neots

Post by ziko »

Hi and thank you for your post.

The data is held in an internal buffer, you pass your own buffer and size of that buffer. The number of readings requested are placed in this buffer and the function call returns the number of samples copied. You get the data from the last read.

If you take your samples too slow, i.e. longer then 1 min then it will overwrite the old values, so make sure it is less then 1 min.

Hope this helps.

Kind regards
Ziko

Technical Specialist

Guest

Do you have a VBA example using usb_tc08_get_temp ?

Post by Guest »

I have tried to build an appl. with use of the get_temp method.

Seems my temp_buffer is not affected by the routine.

Stays at zero, so I tried to give it an initial value, and that value still came out after the routine.

What am I missing here ???

Robin
Advanced User
Advanced User
Posts: 558
Joined: Fri Sep 19, 2008 10:17 am

Post by Robin »

Hi

Are you still having problems with this?

If so, can you post your code here?

Robin

Post Reply