LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I use waveform chart VI to plot the setpoint as a g

reen line, process variable value in a white line, maximum and minimum in red lines.Is there a way that I can change the process variable color only for those points when the values are out of max and min range and leave the in range points still in white?The reason for doing this is to alarm the conditions when the process variable is out of limits. But we prefer not to change the color for the points when they are in limits.
0 Kudos
Message 1 of 5
(3,168 Views)
reen line, process variable value in a white line, maximum and minimum in red lines.Is there a way that I can change the process variable color only for those points when the values are out of max and min range and leave the in range points still in white?I have answered to your question 30 minutes ago but it appears still unanswered, let's try again.

I have not found an immediate solution to your interesting problem, but I found a trick that does what you need.
Just take a look to the attached vi.

Let me know what you think.

altek@tin.it
0 Kudos
Message 2 of 5
(3,168 Views)
reen line, process variable value in a white line, maximum and minimum in red lines.Is there a way that I can change the process variable color only for those points when the values are out of max and min range and leave the in range points still in white?Alberto,

Thank you for your VI. It triggered my mind. Now I can use three different plots to represent three different zones, then the color will change.

Great idea! It will work. since I have to use auto scale y, then I changed your VI, now you can auto scale y without seeing the NaN points. see attached VI.

I have the following questions:
1. how to clear XY chart using a front panel button?, seems no attribute for this.
0 Kudos
Message 3 of 5
(3,168 Views)
reen line, process variable value in a white line, maximum and minimum in red lines.Is there a way that I can change the process variable color only for those points when the values are out of max and min range and leave the in range points still in white?Look at 'How to Clear Charts & Graphs.vi': you will find it in examples\general\graphs\charts.llb
Roberto


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 4 of 5
(3,168 Views)
reen line, process variable value in a white line, maximum and minimum in red lines.Is there a way that I can change the process variable color only for those points when the values are out of max and min range and leave the in range points still in white?Greetings, Yurong:

Your best bet is to use the INTENSITY chart. It's a bit overkill for simply two color states, but it's very convenient. You set it up to plot x v y in the normal manner, but also direct your y data to the Z axis.... you can set any number of threshold colors as you want. Just another solution to consider!
Hope this helps

chutla
Eric P. Nichols
P.O. Box 56235
North Pole, AK 99705
0 Kudos
Message 5 of 5
(3,168 Views)