temp_buffer = (ctypes.c_float * 2 * 15)()

Post any questions you may have about our current range of USB data loggers
Post Reply
eklektek
Newbie
Posts: 0
Joined: Wed Sep 21, 2022 3:56 pm

temp_buffer = (ctypes.c_float * 2 * 15)()

Post by eklektek »

Within tc08StreamingModeExample.py the python example code for the TC08 why is the sample buffer is defined as 2 * 15?

Code: Select all

temp_buffer = (ctypes.c_float * 2 * 15)()
Shouldn't is be:

Code: Select all

temp_buffer = (ctypes.c_float * 15)()
What am I not understanding?

Is there any more comprehensive example code demonstrating the Streaming mode of the TC08, for a multi-channel scenario. If I don't have to I don't want to spend time reinventing stuff.

Post Reply