Source code for spectroscopy (C# and FPGA)