Pure C++ code to read DAQ continuosly