|
|
 | | From: | Raghunathan | | Subject: | Plot the Hi-Lo limits and changing colors in same XY graph. | | Date: | Sun, 23 Jan 2005 10:40:48 -0600 (CST) |
|
|
 | I have a requirement to plot two analog parameters - flow Vs rpm of a pump.= The conditions are :
1. First plot the limits ( high and low ) of t= he flow for an rpm range of 500 to 4100 based on a specification table in y= ellow colour. For this I am trying to create a custom XY-Graph with BG prop= erty set to "T" and superimpose on the real time graph. But the graph just = does not become transperent - how to do this ?
2. In real time, ON T= HE ABOVE SAME GRAPH, plot the acquired values in green colour for 500 to 41= 00 rpm and in blue colour for 4100 to 500 rpm. But unfortunatley when I tri= ed to change color, just when I am reversing, the already plotted ascending= curve also changes to blue colour !
I am making use of the XY-Chart= buffer to simulate the real time plotting and make it behave like a wavefo= rm chart.
After two days of trying to do the above, I have now start= ed believing that the above is impossible in LV7.0 - I am sure it must be p= ossible - but how ?
Thanks
Raghunathan
|
|
 | | From: | chilly charly | | Subject: | Re: Plot the Hi-Lo limits and changing colors in same XY graph. | | Date: | Sun, 23 Jan 2005 12:10:07 -0600 (CST) |
|
|
 | Raghunathan wrote: I have a requirement to plot two anal= og parameters - flow Vs rpm of a pump. The conditions are : 1. First plo= t the limits ( high and low ) of the flow for an rpm range of 500 to 4100 b= ased on a specification table in yellow colour. For this I am trying to cre= ate a custom XY-Graph with BG property set to "T" and superimpose on the re= al time graph. But the graph just does not become transperent - how to do t= his ? 2. In real time, ON THE ABOVE SAME GRAPH, plot the acquired values= in green colour for 500 to 4100 rpm and in blue colour for 4100 to 500 rpm= But unfortunatley when I tried to change color, just when I am reversing,= the already plotted ascending curve also changes to blue colour !
<= /blockquote>
1/ Use the paint brush in the tool palette, to paint in= transparent color both the graph pane and the graph frame. You'll also hav= e to hide the legend, the scales and the grid. However, you do not need to = have two graphs : see point 2 !
2/ you can't have different colors f= orm the same plot. Use different plots on the same graph, and add points on= one or the other according to the conditions. You can use the "NaN" value = (Not-A-Number) when you want to avoid plotting a point. See the attached vi=
CC
MultiColoredPlot.zip: http://forums.ni.com/attachments/ni/170/103502/1/MultiColoredPlot.zip
|
|
|