Wave Amplitude
Hey guys,
How can I have a -1:1 amplitude in the square wave? I've tried to combine two square waves (see attached file). One positive and one negative with a 1 second delay, but unfortunately de Time Delay option makes no modification on the signal, hence the two signals are cancelling each other.
Thanks for your help.
Answers
-
Hi Joseph,
You did correct only. But, check the frequency of both square waves are 1 Hz and delay of First square wave is Zero and Second square wave is 1 sec. The square wave block always produce a wave with 50% duty cycle. It means that, both the waveforms are on for 0.5 sec and off for 0.5 sec. If you want a square wave amplitude range from 1 to -1, then you need to change the delay to 0.5 sec instead of 1 sec. The above approach is not a right one, because, at starting the square wave looks like an amplitude of 0 to 1. Please check the below figure for reference (Observe 0 to 1 sec in plot).
Instead of adding two square waves with a delay of 50% Frequency. Use the below method. In this method, I used a sinusoid block whose output is connected to a relay (available in Non-Linear Blocks) and connect its output to Plot block. Please check this below figure for your reference, by eliminating the above problem.
Thanks & Regards
Athieshkumar T
0 -
Thank you so much Athieshkumar, that was really helpful /emoticons/default_smile.png' srcset='/emoticons/smile@2x.png 2x' title=':)' width='20' />
0