I generated a mixed signal by adding two sin waves (whose parameters I can change dynamically) and plotted them. I used the code for findPeriod from here to find the amplitudes, frequencies and phases of the component signals. Below is what I'm upto:
Manipulate[Grid[
s1 = a1*Sin[ω1 t + ϕ1];
s2 = a2*Sin[ω2 t - ϕ2];
s = s1 + s2;
{{Plot[{s1, s2}, {t, -2 π, 2 π}, PlotRange -> {-10.1, 10.1},
ImageSize -> {500, 200}, AspectRatio -> 2/5]}, {Plot[
s, {t, -2 π, 2 π}, PlotRange -> {-10.1, 10.1},
ImageSize -> {500, 200}, AspectRatio -> 2/5]}},
TableForm[Sort[findPeriod[s, 0.2][[2]], #1[[2]] > #2[[2]] &],
TableHeadings -> {None, {"Freq", "Amp", "Phase"}}]],
"X1" -> {{ω1, 1, "frequency of wave 1"}, 1, 10},
"X2" -> {{ω2, 1, "frequency of wave 2"}, 1, 10},
"Y1" -> {{a1, 1, "amplitude of wave 1"}, 1, 5},
"Y2" -> {{a2, 1, "amplitude of wave 2"}, 1, 5},
"Y1Cyclic" -> {{ϕ1, 1, "phase of wave 1"}, 0, 2 π},
"Y2Cyclic" -> {{ϕ2, 1, "phase of wave 2"}, 0, 2 π}]
But while I'm trying to apply findPeriod inside Manipulate, I'm getting an error. How can I resolve it?

Clear["Global`*"]at the top of the notebook and try again – Young Aug 02 '16 at 14:54Sort[0.2`,#1[[2]]>#2[[2]]&]" – user36426 Aug 02 '16 at 15:27
findperiodcode you referenced in your post beforeManipulate? – Young Aug 02 '16 at 15:32Clear["Global`*"]has to be beforefindperiod– Young Aug 02 '16 at 15:34