取消
显示结果 
搜索替代 
您的意思是: 

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 项奖励
1 条消息(共 18 条)
4,392 次查看
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 项奖励
2 条消息(共 18 条)
4,385 次查看

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 项奖励
3 条消息(共 18 条)
4,382 次查看
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 项奖励
4 条消息(共 18 条)
4,372 次查看
Thats fine now, just checking.
 
Many thanks.
0 项奖励
5 条消息(共 18 条)
4,364 次查看

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 项奖励
6 条消息(共 18 条)
4,332 次查看
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 项奖励
7 条消息(共 18 条)
4,293 次查看

Hello Sarah.

Thanks for the reply.

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

0 项奖励
8 条消息(共 18 条)
4,282 次查看

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

Sarah

Applications Engineer | National Instruments | UK & Ireland
0 项奖励
9 条消息(共 18 条)
4,255 次查看
Oh, i see.
 
Many thanks Sarah, Greatly appreciated.
 
Best Regards
Kevin
0 项奖励
10 条消息(共 18 条)
4,257 次查看