Skip to main content
1-Visitor
Solved

square wave train

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

-MFra-
-MFra-Answer
21-Topaz II

Square wave.jpg

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

wave propagation.jpg

10 replies

23-Emerald I

Maybe a place to start

Translate
-MFra-
-MFra-21-Topaz IIAnswer
21-Topaz II

Square wave.jpg

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

wave propagation.jpg

Translate
23-Emerald I

Fixed to start at zero

Translate
payman1-VisitorAuthor
1-Visitor

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

Translate
23-Emerald V

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

Success!
Luc

Translate