LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Signal Generator by Duration function Exercise

Hey, someone maybe knows how I can do this exercise?

 

Using the Signal Generator by Duration function (multiple use of the function)
generate the following waveform:

y(t) = 10 sin ( ωt) + 10/3 sin ( 3ωt) + 10/5 sin ( 5ωt)

for t from 0 to 2π, where ω = 2π / T, and T is the period of the first harmonic.

Present the signal generated in the form of samples graphically on the XY object Graph. The X axis represents time - find the vector X values ​​based on the following data: number of samples 512 (one period of the first harmonic), sampling rate 25.6 kHz.

example of program:

michal3210_0-1640097651644.png

 

 

I tried to make it this way, but I don't think it works correctly

michal3210_1-1640097797168.png

 

 

0 Kudos
Message 1 of 3
(844 Views)

The waveform looks good to me, what is the question again?

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
0 Kudos
Message 2 of 3
(832 Views)

Hi michal,

 

unfortunately you forgot to attach your VI! (We cannot debug/edit/run images with LabVIEW…)

 

Your image does not fit to your formula:

  • you don't add any sinewaves,
  • you don't have a range of 0…2pi,
  • there are no scaling factors of 10, 10/3, 10/5

Mind to share your code after adapting to your requirements?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 3 of 3
(808 Views)