Java that plot the received waveform and calculate the period and phase values.