LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

why i cannot use the floating point value as input for sine wave generation

hallo
i hope some of Application Engineer will answer my question.in my following VI, i just want to apply frequency not only in integer format like 2 HZ but also in floating point like 1,6 Hz. when i give 2 HZ as frequency input (Sine pattern/Function generator/sine wave etc)it works fine, but when the input is 1,6 HZ. i get the delay. why? can somebody tell me?
This Vi i try to break and resume the number of cycles/periods(cycles to be done through various methods), but i cannot break resume the AO start. why?
i dont want to bring the break start Vi inside a loop, because in that case it starts giving delay between every cycle/period.
can somebody answer my these 2 simple questions?

or it is not possible?
Thanks Regards
0 Kudos
Message 1 of 2
(2,314 Views)
If I understand correctly then there isn't a problem. You are summing two sinusoids together with different frequencies (2 and 1.6 Hz). This trig identity shows that your new waveform (if you want to describe it this way) has a new frequency of 1.8 Hz and is modulated at 0.2 Hz. Since you are only looking at one cycle, you only see a little of the modulation. So there is no delay just a change.

sin(a)+sin(b) = 2sin((a+b)/2)cos((a-b)/2) = 2sin(2*pi*1.8)cos(2*pi*0.2)
Randall Pursley
0 Kudos
Message 2 of 2
(2,296 Views)