LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Playing a waveform slowly!

Good day every one,
 
I am working on a simulation related to vibration .. Actually I have faced the following problem many times while i was working on other simulations..
 
sometimes, i need to run the waveform as a movie.. that is to say, play it back slowly..
if it is a DAQ process, i can't slow it or the buffer will be become full very quickly..
 
I also can't do that when it's any wave generation ..
 
please have a look on the attached file .. I am trying to plot a vibration signal there..
 
Thanks in advance ,
Moh
 
0 Kudos
Message 1 of 4
(2,966 Views)
well , i have helped myself in the "generation" part .
 
I could re plot the wave in every loop iteration but with a further end point everytime ( by connecting the loop iteration terminal to the end point of the E Val function. )
 
Thanks
0 Kudos
Message 2 of 4
(2,952 Views)
Hey Moh,

I took a little time and wrote a quick VI for you, or which I have attached a screen shot. 



In brief, this VI generates a waveform, then takes each point and graphs them individually.  I used a while loop and case structure with a wait function.  The Play button allows you to play and pause the "playback" and you can adjust the speed by increasing or descreasing the speed control.  Inside the True case the waveform is being indexed so that one point at a time is added to the chart and the count is updated.  The false case only has the count wired straight through. 

Let me know if this is what you wanted to do or not, or if you have further questions!
Andy F.

Message Edited by Andy F. on 06-01-2006 04:03 PM

-----------------------------------------------------------------
National Instruments
0 Kudos
Message 3 of 4
(2,935 Views)

Hi Andy,

Yes, this is around what I wanted. Actually I need to use the Eval VI which calculates the value of a function given by a formula. Your method is simple and useful. For the Eval VI, as I mentioned above, I could put it in a loop and extend the "end" point everytime the loop iterates. Apparently, I can change the speed by changing the delay.

Here's a snap shot

Thanks,

Moh

Message Edited by Moh on 06-03-2006 08:33 AM

0 Kudos
Message 4 of 4
(2,918 Views)