LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

XY Graph: make part of line above or below a limit turn red

I know this can be done on a waveform graph, using NaN, but I've tried using NaN with a XY-Graph and it doesn't work. How can I accomplish this?
0 Kudos
Message 1 of 5
(3,530 Views)


@BobChuck wrote:
I know this can be done on a waveform graph, using NaN, but I've tried using NaN with a XY-Graph and it doesn't work. How can I accomplish this?



Attached is a demo with an XY-Graph and NaN using v6.02 that is from this or some other forum.  Regret that I can't remember the source to give them credit.
=====================================================
Fading out. " ... J. Arthur Rank on gong."
Message 2 of 5
(3,513 Views)

Nice one Donald I like that (also to the original author too Smiley Happy )

I was building this alternative

while Donald posted.

The Alarm (x,y) need to be plotted as points

David

Message Edited by David Crawford on 09-14-2006 02:57 PM

Message Edited by David Crawford on 09-14-2006 02:58 PM

0 Kudos
Message 3 of 5
(3,509 Views)
Thank you Very Much! The code was very helpful, and it looks like it will work just as soon as I get around one small problem:
 
I need to feed the XY Graph an array, not a cluster. I don't think that I can convert the (very large) program to handle a cluster, and I haven't even been able to test the main program to make sure it works because the graph is generated in a SubVI but displayed by the main (which wants an array).
0 Kudos
Message 4 of 5
(3,497 Views)

BobChuck wrote:
... I need to feed the XY Graph an array, not a cluster. I don't think that I can convert the (very large) program to handle a cluster, and I haven't even been able to test the main program to make sure it works because the graph is generated in a SubVI but displayed by the main (which wants an array).

BobChuck,

Depending on the complexity of the program YMMV, but to convert your graph array (i.e. single plot … array of clusters of X and Y) to a multiplot graph (array of clusters of array of clusters of X and Y ... I think I got that right), you'd just need to insert Build Cluster Array functions where needed.

You'd also have to replace the strict control refnum on your existing subVI (which is typed as a single-plot) with one typed as a multiplot.   If you need more background on control references (strict vs. weak, etc.) there's an good old overview here.
Revised demo attached.

=====================================================
Fading out. " ... J. Arthur Rank on gong."
0 Kudos
Message 5 of 5
(3,458 Views)