C# code for reading FPGA and plotting data