Test and Measurement Forum

Understanding usb_tc08_get_temp

Post general discussions on using our drivers to write your own software here

Understanding usb_tc08_get_temp

Postby pdr0663 » Sat Jul 07, 2007 3:11 am

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

Postby pdr0663 » Sat Jul 07, 2007 3:13 am

Sorry about the funny grammar in my post. I was constantly interrupted!
:wink:
pdr0663
User
User
 
Posts: 4
Joined: Wed Jun 27, 2007 9:52 am

Postby ziko » Mon Jul 09, 2007 12:14 pm

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
ziko
Zen Master
Zen Master
 
Posts: 1705
Joined: Fri Dec 01, 2006 10:03 am
Location: St Neots

Do you have a VBA example using usb_tc08_get_temp ?

Postby Guest » Mon Feb 02, 2009 10:06 pm

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 ???
Guest
 

Postby Robin » Wed Feb 18, 2009 4:02 pm

Hi

Are you still having problems with this?

If so, can you post your code here?

Robin
Robin
Zen Master
Zen Master
 
Posts: 558
Joined: Fri Sep 19, 2008 10:17 am


Return to General Software Discussions

Who is online

Users browsing this forum: No registered users and 0 guests