|
|
| Author |
Message |
pdr0663 User

Joined: 27 Jun 2007
Posts: 4
|
Posted: Sat Jul 07, 2007 3:11 am Post subject: Understanding usb_tc08_get_temp |
|
|
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 |
|
| Back to top |
|
 |
pdr0663 User

Joined: 27 Jun 2007
Posts: 4
|
Posted: Sat Jul 07, 2007 3:13 am Post subject: |
|
|
Sorry about the funny grammar in my post. I was constantly interrupted!
 |
|
| Back to top |
|
 |
ziko Site Admin

Joined: 01 Dec 2006
Posts: 667
Location: St Neots
|
Posted: Mon Jul 09, 2007 12:14 pm Post subject: |
|
|
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 |
|
| Back to top |
|
 |
|