LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to use Property node to change color of plot line on Waveform Chart

I'm not sure how to use a Property Node to configure /change the plot line color as blue or red as determined by an input on the front panel. The line color should be configurable programmatically while the VI is running. When the program runs I only get 1 output on the chart and the line color is not able to be changed. 

 

I'm new to the Labview world, please help.

0 Kudos
Message 1 of 4
(1,552 Views)

Hi Uibel,

 

for me it works as expected:

I can change the plot color while the VI is running…

Best regards,
GerdW


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

I can't open your VI, since I'm using LV2017.

 

But this code displays a running sine wave, which will change color each second.

 

In case there is more than one plot, you need to set the "ActivePlot", which you want to change. After, just set "Plot.Color".

 

 

colorplot.png

0 Kudos
Message 3 of 4
(1,518 Views)

The problem with your VI is that you only have one plot.  But your outer while loop sets the active plot to 0, 1, 2, 3, ....., whatever i is that iteration.  Guess what?  On the 2nd iteration, you try setting the active plot to #1 which doesn't exist so you get an error.  You only have plot #0.

0 Kudos
Message 4 of 4
(1,493 Views)