Test and Measurement Forum

usb_tc08_get_temp - what does times_ms_buffer represent?

Post any questions you may have about our current range of USB data loggers

usb_tc08_get_temp - what does times_ms_buffer represent?

Postby JeffLikesC++ » Wed May 14, 2014 5:21 pm

I've activated two channels on the TC08. When I dump the temperature and time output from usb_tc08_get_temp I get 16 values for each channel (see below). Is this output telling me that the temperature[1][0] is the value recorded 200 milliseconds after the temperature[0][0]? In the output the first offset is the channel number and the second offset is the offset of the array of values returned by usb_tc08_get_temp.

Best Regards,

Jeff


Min interval is 200 milliseconds.
Temperature[0][0] = 23.8099 0 milliseconds
Temperature[0][1] = 23.81 0 milliseconds
Temperature[0][2] = 23.8097 0 milliseconds
Temperature[0][3] = 23.8097 0 milliseconds
Temperature[0][4] = 23.8096 0 milliseconds
Temperature[0][5] = 23.8096 0 milliseconds
Temperature[0][6] = 23.8094 0 milliseconds
Temperature[0][7] = 23.8093 0 milliseconds
Temperature[0][8] = 23.8091 0 milliseconds
Temperature[0][9] = 23.809 0 milliseconds
Temperature[0][10] = 23.809 0 milliseconds
Temperature[0][11] = 23.8088 0 milliseconds
Temperature[0][12] = 23.8088 0 milliseconds
Temperature[0][13] = 23.8087 0 milliseconds
Temperature[0][14] = 23.8087 0 milliseconds
Temperature[0][15] = 23.8085 0 milliseconds
Temperature[1][0] = 22.1947 200 milliseconds
Temperature[1][1] = 22.1948 200 milliseconds
Temperature[1][2] = 22.1945 200 milliseconds
Temperature[1][3] = 22.1908 200 milliseconds
Temperature[1][4] = 22.187 200 milliseconds
Temperature[1][5] = 22.1833 200 milliseconds
Temperature[1][6] = 22.1869 200 milliseconds
Temperature[1][7] = 22.183 200 milliseconds
Temperature[1][8] = 22.1902 200 milliseconds
Temperature[1][9] = 22.1901 200 milliseconds
Temperature[1][10] = 22.1901 200 milliseconds
Temperature[1][11] = 22.1752 200 milliseconds
Temperature[1][12] = 22.1715 200 milliseconds
Temperature[1][13] = 22.164 200 milliseconds
Temperature[1][14] = 22.153 200 milliseconds
Temperature[1][15] = 22.1455 200 milliseconds
JeffLikesC++
Newbie
 
Posts: 0
Joined: Wed May 14, 2014 5:00 pm

Re: usb_tc08_get_temp - what does times_ms_buffer represent?

Postby JeffLikesC++ » Wed May 14, 2014 9:04 pm

I messed up my array management. The data should have looked more like this. The way I read this is that all channels are sampled at time 0, then all channels are sampled again at 400 milliseconds, and so on. Is this interpretation correct?

Min interval is 400 milliseconds.
Channel[2][0] = 33.1688 0 milliseconds
Channel[2][1] = 33.1795 400 milliseconds
Channel[2][2] = 33.1757 800 milliseconds
Channel[2][3] = 33.1721 1200 milliseconds
Channel[2][4] = 33.1685 1600 milliseconds
Channel[2][5] = 33.1721 2000 milliseconds
Channel[4][0] = 15.5358 0 milliseconds
Channel[4][1] = 15.5431 400 milliseconds
Channel[4][2] = 15.5355 800 milliseconds
Channel[4][3] = 15.5355 1200 milliseconds
Channel[4][4] = 15.5355 1600 milliseconds
Channel[4][5] = 15.5355 2000 milliseconds
Channel[6][0] = 22.3535 0 milliseconds
Channel[6][1] = 22.346 400 milliseconds
Channel[6][2] = 22.3605 800 milliseconds
Channel[6][3] = 22.3642 1200 milliseconds
Channel[6][4] = 22.3532 1600 milliseconds
Channel[6][5] = 22.3569 2000 milliseconds
JeffLikesC++
Newbie
 
Posts: 0
Joined: Wed May 14, 2014 5:00 pm

Re: usb_tc08_get_temp - what does times_ms_buffer represent?

Postby Karunen » Mon May 19, 2014 8:57 am

Hi Jeff,

Would you mind sending us the code either posting on here or emailing it to support@picotech.com

This would just give us a better understanding on what you are settings you are using and what you are measuring.

Thanks,
Karunen

Technical Specialist
Pico Technology
Karunen
Zen Master
Zen Master
 
Posts: 194
Joined: Thu Nov 21, 2013 9:22 am

Re: usb_tc08_get_temp - what does times_ms_buffer represent?

Postby JeffLikesC++ » Thu May 22, 2014 12:44 am

I've attached my code. It was built with Visual Studio 2013 and Boost 1.55. Boost 1.55 was only used for converting command line parameters from char[] to actual integers.

My basic question is what do the times reported by usb_tc08_get_temp represent?

Best Regards,

Jeff
Attachments
PicoThermalLogger.cpp
Built with VS2013 and Boost 1.55.
(5.03 KiB) Downloaded 76 times
JeffLikesC++
Newbie
 
Posts: 0
Joined: Wed May 14, 2014 5:00 pm

Re: usb_tc08_get_temp - what does times_ms_buffer represent?

Postby Karunen » Thu May 22, 2014 7:30 am

Hi Jeff,

Thank you for the code.

The times_ms_buffer the is the time difference from when the first value was collect to when the nth value was collected.

Please note these time values are only relative per channel as the function usb_tc08_get_temp will only return values from the channel specified in the function.

Thanks,
Karunen

Technical Specialist
Pico Technology
Karunen
Zen Master
Zen Master
 
Posts: 194
Joined: Thu Nov 21, 2013 9:22 am


Return to USB PC Data Loggers

Who is online

Users browsing this forum: No registered users and 0 guests