Wave Amplitude

Altair Forum User
Altair Forum User
Altair Employee
edited October 2020 in Community Q&A

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.

<?xml version="1.0" encoding="UTF-8"?>Square wave.JPG

Answers

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited September 2017

    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).

     

    Capture.PNG.6ad3d6a560a0963cb79321bde566e69d.PNG

     

                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.

     

    59c2a0466a418_Capture1.PNG.3f9e16cf79e9d0156ead7a89add75dc6.PNG

     

    Thanks & Regards

    Athieshkumar T

     

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited September 2017

    Thank you so much Athieshkumar, that was really helpful :)/emoticons/default_smile.png' srcset='/emoticons/smile@2x.png 2x' title=':)' width='20' />