From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can you reduce PC slowdown with ~500 indicators updating!?

Hi everyone, first post so please be gentle!

 

I've got a VI running with over 500 indicators and updating every 20ms. Only a few change at any given time, maybe a dozen or so, but the problem I have is that when that happens the PC starts to really struggle and slow down. It's only a couple of years old and is only used in the lab for LabVIEW so its pretty nippy normally. Unfortunatley it can't be upgraded as we need to keep costs down.

 

Does anyone know how I can speed this up? Is there a way to set the update rate of the indicators? Or to set labview to only update the indicators that have changed instead of the entire screen?

 

Any advice is welcome!

 

Cheers,
matt

0 Kudos
Message 1 of 5
(2,468 Views)

Hi Matt,

welcome to the forum.

 

You can use the property "DeferFrontPanel Updates". 

How do you update your controls? Do you use the references? You should only update the changed controls, but you have to handle it.

 

Mike

Message 2 of 5
(2,461 Views)

Eliminate overlapping indicators.

 

Disable screen refresh before updating and re-enable it after updating the indicators.

 

Reduce the frequency at which the controls are being drawn to screen.

 

Shane.

0 Kudos
Message 3 of 5
(2,460 Views)

I deal with this using proper architecture, for example, a state machine that will only update the changed indicators in the state that the value is changed in.  Also 500 indicatores seems extreeme for a user.  Are you trying to minimize what a user is seeing at a given time.  I would guess that a user can only handle looking at a handfull of indicators at any given time (I try to keep this 10-20 indicators max).  This is probably not all that useful for this application if it is already done but can be useful in future development efforts).

 

Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
0 Kudos
Message 4 of 5
(2,439 Views)

It sounds like you're using indicators as variables, rather than wires.  With 500 of them it sure won't be a simple matter to refactor, but NEXT TIME...

 

Anyway, your users can't see the FP updating every 20ms so deferring the panel updates should do what you need.

Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

0 Kudos
Message 5 of 5
(2,405 Views)