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: 

change Chart background color during runtime

I want to change the background color of my chart during runtime.

I can set and read-out the color with a property node but the apperance on the frontpanel is not changing.

After stopping the VI the chart suddenly gets updated.

 

Please check my VI attached.

 

Do someone knows a workaround?

 

 

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

Hi Robert,

 

that seems to be a limitation of the graph with this very property as I see the same problem using LV2011.

Setting the plot area background color works instantly…

Best regards,
GerdW


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

Hi GerdW

 

thank you for the reply.

I have tried with LV2011SP1 and LV2013SP1. It dosn't work in both versions.

 

Is there a change to fix this problem?

 

Best Regards

Robert

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

Hi Robert,

 

to "fix" the problem you can make the chart transparent and put it in front of a second indicator. (like a simple bool switch). Then change the color of that switch…

Best regards,
GerdW


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

Hello Robert,

 

another option would be to place (for example) a vertical smooth box behind the chart and change the color of it.

 

See my attachment.

 

Best regards

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