cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can change your system assigned username to something more personal in your community settings. X

Creating a pulse train out of fourier transform

JA_9803374
6-Contributor

Creating a pulse train out of fourier transform

Hey there,

 

I am trying to create a pulse train of period 20 ms with a pulse width of 3ms. I am trying to use a fourier transform but I have the incorrect pulse width and I would only like to display the positive amplitude from 0 to A.

JA_9803374_0-1614895833989.pngJA_9803374_1-1614895849870.png

 

4 REPLIES 4
LucMeekes
23-Emerald III
(To:JA_9803374)

This should bring you a little bit closer to your goal:

LucMeekes_0-1614899923011.png

Success!
Luc

 

JA_9803374
6-Contributor
(To:LucMeekes)

So I tried a different approach which I think is better than my first one. However, my period is wrong but the pulse width is right.

This is just a function to create a pulse signal normally using conditionals:

JA_9803374_0-1614900131933.pngJA_9803374_1-1614900156957.png

JA_9803374_2-1614900233125.pngJA_9803374_3-1614900275534.pngJA_9803374_4-1614900302988.png

 

Werner_E
25-Diamond I
(To:JA_9803374)

Looking for something like this?

Werner_E_0-1614946524471.png

 

 

 

 

Werner_E
25-Diamond I
(To:Werner_E)

Of course the coefficients could easily be calculated directly and so you may define a one-liner function with T, L and Û as additional arguments:

Werner_E_0-1614947921102.png

 

Announcements

Top Tags