LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I want to make the parts of a white waveform graph line that are above a cursor red

I want to make the parts of a white waveform graph line that are above a cursor red. It's hard to do; I know it involves some sort of invisible chart beneath the graph. I've searched everywhere (including here) for walkthroughs or code examples, but I have LabVIEW 6.1 so I can't view most of what's out there.
0 Kudos
Message 1 of 8
(3,746 Views)
Hi Bob,
if you plot curves with "NaN"- Values, they won't be plotted. So you have to feed two plots with the same values to the Graph and replace the area of interest with NaN.
See example below (I have LV 7.1, so I can't save the VI down to 6.1).





Greets, Dave

Message Edited by daveTW on 09-06-2006 08:57 PM

Greets, Dave
Message 2 of 8
(3,734 Views)

@BobChuck wrote:
I want to make the parts of a white waveform graph line that are above a cursor red. It's hard to do; I know it involves some sort of invisible chart beneath the graph. I've searched everywhere (including here) for walkthroughs or code examples, but I have LabVIEW 6.1 so I can't view most of what's out there.



Make a copy of the waveform and replace all values less than the cursor y value by 'NaN' values. Arrange this copy on top of the original waveform curve and give it a red color. The NaN values of the copy are not displayed.

-Franz

(I was obviously not quick enough to answer the question...)

Message Edited by ahlers01 on 09-06-2006 02:01 PM

Message 3 of 8
(3,732 Views)
Is there a way to do this multiple times while still using only two lines?
 
Is there a way to do this with a live-feed?
0 Kudos
Message 4 of 8
(3,713 Views)


@BobChuck wrote:
Is there a way to do this multiple times while still using only two lines?
 
Is there a way to do this with a live-feed?


Sorry, but what do you mean with 'multiple times' and 'live-feed'?
0 Kudos
Message 5 of 8
(3,708 Views)
I want the part of the line that goes above one cursor or below another to be red, while the rest of the line stays white.
0 Kudos
Message 6 of 8
(3,681 Views)
I would provide a picture, but I can't create the graph... I need to have every point that is above value1 or below value2 to show up as red, while the rest of the graph stays white. I've tried using the NaN example, but I don't have the sine wave generator function so i can't write the code for it or run programs that use the code.
0 Kudos
Message 7 of 8
(3,659 Views)
Hi Bob,
this is very similar to my example above, it only walks with a for- loop through the data and asks whether it's in the limit or not.

 

Greets, Dave

Message Edited by daveTW on 09-11-2006 10:06 AM

Greets, Dave
0 Kudos
Message 8 of 8
(3,615 Views)