Added code to calculate the number of FIFO samples needed, and gray the "Get Data" button if too large.