LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I pick only certain points to plot?

I have a waveform chart that has a secondary Y axis. I want the second plot to ride the first, which I already have, but only show points on the line when certain events occur. In other words I have 1 plot and on that plot I would like to show a tick mark or X when a specific event happens. Currently I can only show all ticks for the second plot. I know this is a little hard to explain but if there are any ideas out there I would appreciate it.
 
Thanks,
Troy
0 Kudos
Message 1 of 5
(2,932 Views)

Just filter the data so it contains NaN for all points that you don't want to show.

Attached is a simple example (LabVIEW 7.1), that charts random data and places an X on the second plot of the data is >0.9. I'm sure you can adapt it for your purpose.

 

Message Edited by altenbach on 10-07-2005 08:21 AM

Download All
0 Kudos
Message 2 of 5
(2,928 Views)

altenbach - This is exactly what I needed. Thanks for your help. One more thing to tie it up. My primnary Y axis is one range and the secondary is another. I want both axis to have the range, which is auto scaled, of the primary axis. Is there a way to do that? I was looking through the property nodes and I find properties related to the Y scale but what about the secondary Y scale? Again, thanks for the help.

 

Troy

0 Kudos
Message 3 of 5
(2,914 Views)
Ok, I figured it out. I just deleted the secondary Y scale and then everything was plotted against the primary. I didn't need the second scale anyway. Thanks again.
0 Kudos
Message 4 of 5
(2,911 Views)
Yes, I was going to say that! If they are the same, why use two axis??? Good luck!
0 Kudos
Message 5 of 5
(2,906 Views)