LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

sine wave length

Hi. My problem is, when i'm trying to generate a sine wave with ''simulate signal'' it's lengt (x-axis) is  between 0 - 0,1 second. I need 3s length sine wave How can i generate longer sine wave? Thanks

0 Kudos
Message 1 of 2
(2,753 Views)

If you mean the Simulate Signal Express VI, then the default is 100 samples at 1000 Hz. In the bottom left hand side of the configure screen, you can un-tick the Automatic checkbox next to the Number of Samples field, allowing you to change the number of samples.

 

sim-sig.png

 

If your sampling rate in Hertz is f, and your desired time in seconds is t, then the number of samples you need to acquire is equal to f x t.

 

As ever, I'd strongly recommend learning to use the VIs on the Waveform or Signal Processing palettes in time - you'll find they are much more powerful than the Express VIs.

---
CLA
0 Kudos
Message 2 of 2
(2,741 Views)