Skip to main content
1-Visitor
May 10, 2017
Solved

square wave train

  • May 10, 2017
  • 3 replies
  • 6017 views

Hello,

I want to create a square wave train with 40 kHz frequency. The problem with the attached worksheet is

1- it doesn't start from zero amplitude

2- I don't know how to add the factor (x-vt) , x= position and v=the sound speed, to simulate the wave train propagation in "x" direction.

Could you please give me some hints.

All the best

Payman

Best answer by -MFra-

Square wave.jpg

Example of voltage step propagation, along a line, in space and time:

wave propagation.jpg

3 replies

23-Emerald I
May 10, 2017

Maybe a place to start

-MFra-21-Topaz IIAnswer
21-Topaz II
May 10, 2017

Square wave.jpg

Example of voltage step propagation, along a line, in space and time:

wave propagation.jpg

23-Emerald I
May 11, 2017

Fixed to start at zero

payman1-VisitorAuthor
1-Visitor
May 15, 2017

thank you, the worksheet generates an infinite train , how can I truncate it to 10 periods ?

23-Emerald IV
May 15, 2017

This should do it, for any frequency Fs, amplitude A, duty-cycle d and number of periods p:

Success!
Luc