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,859 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,845 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,795 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,785 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,720 Views)