ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Numerical Indicator Update Rate

Hello all.
 
I am reading and charting several voltages. I am also using a numerical display of the same data.
I would like the charts to be updated continuously, but the numerical displays only updated say every 250ms.
I cannot find an option for this, I have checked the forum and help pages and could not find anything similar.
 
Thanks
0 Kudos
Message 1 of 18
(4,631 Views)
Hello KevC,

just put the indicator into a (while) loop containing a "wait for next multiple" with your desired update time. Then connect the indicator with your data source. (Easiest solution could be a local variable to allow proper data flow...).

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 18
(4,624 Views)

Hi GerdW

Thanks for the reply.

Will this have the effect of updating everything in the while loop at such a rate, including the charts?

I have 5 numerical displays and 3 charts in total.

Thanks again

0 Kudos
Message 3 of 18
(4,621 Views)
Hello KevC,

roughly said: an indicator gets updated when new data is written into. So everything in a loop that gets new data is updated on the frontpanel.

But you asked "how to update a single indicator at a given interval?". So put just the needed indicators into the loop and leave the rest untouched.

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 18
(4,611 Views)
Thats fine now, just checking.
 
Many thanks.
0 Kudos
Message 5 of 18
(4,603 Views)

Hello again.

Sorry to ask you to go over this again.

My VI consists of 1 while loop, where the tasks are configured outside, and everything that must be updated contiually is inside.

How do I use another while loop with the wait function to update the numerical indicator?

 

Best Wishes

Kevin

0 Kudos
Message 6 of 18
(4,571 Views)
Hi there,
 
A quick way to do it would be with local variables. Here's a little example that simulates a signal, graphs it continuously and outputs a numeric value every 500ms. I'd recommend putting some form of timing in the main loop to stop it eating all your CPU though!
 
 
Sarah

Applications Engineer | National Instruments | UK & Ireland
0 Kudos
Message 7 of 18
(4,532 Views)

Hello Sarah.

Thanks for the reply.

I had problems opening the attached file. I am using Labview v7.1.

0 Kudos
Message 8 of 18
(4,521 Views)

Sorry, it was in v8, here it is in v7.1.

Sarah

Applications Engineer | National Instruments | UK & Ireland
0 Kudos
Message 9 of 18
(4,494 Views)
Oh, i see.
 
Many thanks Sarah, Greatly appreciated.
 
Best Regards
Kevin
0 Kudos
Message 10 of 18
(4,496 Views)