LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

show value every 10 seconds

Solved!
Go to solution

Hi,

 I am trying to create a moving average for the data I am collecting. I have managed to implement the movingaverage.vi into my program, but now I want to display the actual value on the front panel but only once every couple of seconds (at the moment I am collecting data many times a second and this is too quick to read on the front panel). Is there an easy way to do this?

 

Thanks

0 Kudos
Message 1 of 6
(4,167 Views)
Solution
Accepted by topic author Lun13
Place the indicator inside the true case of a case structure and set the case to true once every 10 seconds.
Message 2 of 6
(4,165 Views)

There might be examples of this on the forum.  The easiest implementation is to use a State Machine, where you enter the "refreshDisplay" event at timed interval. 

 

Have a look at the attached example.

 

R

Message 3 of 6
(4,163 Views)
Thanks for the replies - how do I set the case structure to be true every 'x' seconds? I have attached the vi I have so far.
0 Kudos
Message 4 of 6
(4,148 Views)

use elapsed time vi.

reset it after every 10 sec as per your requirement

 

 

 

 

Gaurav kSmiley Happy

Gaurav k
CLD Certified !!!!!
Do not forget to Mark solution and to give Kudo if problem is solved.
0 Kudos
Message 5 of 6
(4,143 Views)
Thank you - does exactly what I wanted!
0 Kudos
Message 6 of 6
(4,140 Views)