LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Continuity of functions from basic function generator

Solved!
Go to solution

 

I would like to use the basic function generator to create a continuous waveform.

im not sure if Im performing or using the function generator correctly.


for each iternation of the while loop, I would like to output only one point of the sinusoid.

Then the next iternation would produce the next corresponding point in the sinwave.

 

backpanel.jpg

 

 

it seems to keep missing some points

Im not sure why this is.

Its hard to notice unless the plot is made to only show little squares for each sample point.

 

 

frontpanel.jpg

 

Message Edited by jimmyinct3 on 10-18-2009 04:24 PM
0 Kudos
Message 1 of 5
(4,040 Views)
Solution
Accepted by jimmyinct3
I am fairly certain that that VI uses the current timestamp as the x value, so any time your computer gets a little busy (file I/0, etc.) there is likely to be a glitch.  You could always use the simple sine function with the iteration number (properly scaled for the desired period).
0 Kudos
Message 2 of 5
(4,033 Views)

yea, it seems the sinwave generator doesent seem to have that problem.

i guess i loose the ability to interchange the waveforms though.

 

0 Kudos
Message 3 of 5
(4,031 Views)

 

i assume you were talking about the simulate signal express vi.

this is the one that does not have the problem

the sine wave genetaor does have the problem where it skips points.

the simulate signal express vi does not miss points but it is horrible for computation speed.

the program goes from 10000 iterations a second to 1000 iteration a second when i replace the function generator with this express vi

0 Kudos
Message 4 of 5
(3,994 Views)

Actually, I was talking about the sine function in the math palette.  You could also use the Sine Pattern VI to generate one cycle and repeatedly index the array inside the while loop.

 

SinePattern.png

 

I tend to avoid Express VIs for the reasons you've discovered, amongst others. 

0 Kudos
Message 5 of 5
(3,983 Views)