FPGA-based apparatus for acquisition and real-time compression of non periodic signals