LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Table Coloring

Hi,

 I am triying to color cell of table according to some limits. The VI is attached. Every time "save" button is pressed, the numeric values (act"i") and their limits (max"i", min"i") are written to text file and related table(act"i") cell colored according to "max" ,"min" numerics. I am saving their limits for backward limit analysis of the table each time button is pressed.This provide coloring previous rows according to limits of that time.  Even if the limit values change, the previous rows of table colored according to limits of that time.

The vi is working perfectly good. But when text file grows too much the vi slows coloring and writing to file. Is there another efficient way of doing this?

NOTE : When a cell of table colored once it does not change. But When it reads from file it overwrites instead of new row

Thanks in advance,

0 Kudos
Message 1 of 4
(2,415 Views)

Hi makdag,

 

"But when text file grows too much the vi slows coloring and writing to file."

Setting a lot of properties is slow. You can always "defer panel updates" for a VI to speed up operations involving a lot of UI work...

Best regards,
GerdW


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

@GerdW wrote:

Hi makdag,

 

"But when text file grows too much the vi slows coloring and writing to file."

Setting a lot of properties is slow. You can always "defer panel updates" for a VI to speed up operations involving a lot of UI work...


Hi GredW,

 

How can I use "Defer Panel Update"? .It gives "Invalid Propery" error when referencing the VI

 

Thanks

0 Kudos
Message 3 of 4
(2,394 Views)

@makdag wrote:

@GerdW wrote:

Hi makdag,

 

"But when text file grows too much the vi slows coloring and writing to file."

Setting a lot of properties is slow. You can always "defer panel updates" for a VI to speed up operations involving a lot of UI work...


Hi GredW,

 

How can I use "Defer Panel Update"? .It gives "Invalid Propery" error when referencing the VI

 

Thanks

 

Sounds like you have not wired a Panel ref to the Defer.

 

Ben


 

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 4 of 4
(2,388 Views)