Lynn,
I am trying to produce a perfect sine wave and use my EMG signal to constantly adjust its amplitude and frequency. I would say the range of frequencies would be 1-20 Hz for which my arm can possibly perform. I might send in my EMG wave once every few seconds, depending on whether I need to alter the state of the sine wave. Also, my EMG signal is a little bit noisy, but not as bad as the uniform white noise. And I am not worried about it not having high frequency resolution for now.
But at this stage, I am just making sure I can output a sine wave by detecting the amplitude and frequency from somewhere else.
Another question regarding your previous reply is that how can I fix the time scale problem? If I understand you correctly, you meant that chart two took more data points than chart one, and each point was set to be equidistant, so the time-axis in chart two was longer in order to distribute all the points. This means that the time-axis doesn't represent the real time. Is that right? If so, how can I check that the produced sine wave has the exact same frequency as the simulate signal while they have different dts?
I really thank you for taking the time reading my post.
Cheryl