DAQ Code for processing acquired data