LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to properly generate a sin wave and take it fourier transform?


@ZainAli02 wrote:

yes, that should result in an array


what is "that"?

0 Kudos
Message 11 of 15
(352 Views)

By "that" I meant an array can be built into a waveform by defining dt. 


0 Kudos
Message 12 of 15
(317 Views)

@ZainAli02 wrote:

yes, that should result in an array


No that takes an array and results in a waveform. Have you solved your problem yet?

0 Kudos
Message 13 of 15
(308 Views)

@altenbach wrote:

@ZainAli02 wrote:

yes, that should result in an array


No that takes an array and results in a waveform. Have you solved your problem yet?


Yes, I had solved my problem. Thank you for all the help, I apologize for my extremely late response.

0 Kudos
Message 14 of 15
(236 Views)

You are numerically generating a sine wave at multiple time points using finite-precision floating-point numbers (and the sine function does not give exact values).  In particular, the amplitude values for frequencies other than 0.1 are probably not 0, but some extremely tiny (and hence unreliable) value, making the estimation of the phase more-or-less meaningless.

 

Bob Schor

Message 15 of 15
(230 Views)