Streaming or not?

Post general discussions on using our drivers to write your own software here
Post Reply
Posts: 3
Joined: Thu Jun 29, 2006 9:12 am

Streaming or not?

Post by NeilJordan » Mon Jul 03, 2006 9:53 am

I think I must have missed something basic, but I am not sure if I need to try the streaming option or not.

I am using Access with VBA to make samples using the form's timer function. This is set to a delay set by the user, but will most likely be set to 1 minute.

This seems to work ok with the usb_tc08_get_single function being called.

I may want to move on to showing LIVE values as quick as possible, but then simply record one every minute.

Should I be using the streaming mode for this, or can someone please explain, in context, when I should use one and not the other.


Advanced User
Advanced User
Posts: 656
Joined: Thu Jul 07, 2005 12:41 pm
Location: St Neots, Cambridgeshire

Post by Michael » Thu Jul 06, 2006 9:08 am


The manual states how to use the streaming mode and get single function.

Typically you should use the get_single call to return a value adhoc. For your application, use the streaming mode to reduce processor load. This extract from the manual tells you how:

0Streaming mode is an operational mode in which the USB TC-08 unit samples data and returns it to the computer in an unbroken sequence, using the onboard clock to ensure accurate timing.

The unit can buffer up to two sets of readings at once. To avoid loss of readings, make sure that another application on the PC - including the one you are writing - does not prevent the driver from collecting readings for more than three sampling intervals. To allow the driver to sample continuously, call the Windows Sleep() function in any sampling loops (see example below) to make sure that your application does not use too much processor time.

Hint: Try not to use a Sleep() call for less than 50-100 milliseconds, e.g., Sleep(50) or Sleep(100). If you are programming a Windows GUI application, a good alternative to sampling loops is the WM_TIMER message.

Best regards,
Michael - Tech Support
Pico Technology
Web Support Forum

Post Reply