LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

formula node to create a sine wave

I am trying to create a Sine Wave to display on an XY Graph using a formula node. I've put in my formula which is: Sine=Emax*sin(2*pi*f*t). I am getting a very choppy almost triangular wave displayed on the xy graph. Any suggestions as to how to get it to display a clean waveform.

 

Thanks

Chirs

 

0 Kudos
Message 1 of 15
(7,435 Views)
What are you using to increment the value for 't'?
0 Kudos
Message 2 of 15
(7,433 Views)

Chirs,

 

How many samples (values of t)  do you have in each cycle of the waveform?  It sounds like you may have a small number.  It takes at least 8-10 samples per cycle to really start to look like a sine and 50-100 to make it look smooth.

 

Lynn 

0 Kudos
Message 3 of 15
(7,429 Views)
More to the point: why are you using a formula node? This can be accomplished more easily and more efficiently using LabVIEW primitives or with the signal generation functions.
0 Kudos
Message 4 of 15
(7,428 Views)
Here is a screen shot of my program so far.
0 Kudos
Message 5 of 15
(7,427 Views)
I would love to use anything other than a formula node. Also I need to have approximately 10mv resolution on the xy graph.
0 Kudos
Message 6 of 15
(7,426 Views)
Assuming you have more than "LabVIEW base", open your tools palette and have a look at "signal processing...signal generation..sine pattern" 🙂
0 Kudos
Message 7 of 15
(7,383 Views)
I wish I could use those. But I have to do this in a formula node. That is the requirement given to me.
0 Kudos
Message 8 of 15
(7,381 Views)
Is this homework? Cause if it's for work, whoever gave you that requirement should ... I won't go there.
0 Kudos
Message 9 of 15
(7,375 Views)
This is homework. As I said in prior postings I am not getting a clean sinewave displayed on the XY graph. It looks almost like a triangular waveform.
0 Kudos
Message 10 of 15
(7,371 Views)