LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

capture range of graph values

Hey all,

I'm plotting an XY graph (change in angle over time) with one array filling the X-values (time) and another array filling the Y-values (angles in degrees).

The user then selects a lower and an upper bound. (I use cursers and capture their location, kinda like what is in the example graphcursors)

Is there a way to capture the plotted points between each bound without having to go back and dig through the arrays?

The end goal is to find the max/min point (depending on the curve). If you have a better way to do this I'm open to suggestions as well.
0 Kudos
Message 1 of 4
(2,971 Views)
Hi gwain,

The following code does this:

First it filters both data-sets to an uper and lower limit (including the boundaries), then ANDs the results and uses an OpenG function to return the subset that is true in both cases.

To speed up the code you should create a local copy of the OpenG VI and set it to reentrant, or create your own version that would do the filtering in one go.

Ton



Message Edited by TonP on 02-18-2008 04:45 PM
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 2 of 4
(2,961 Views)
Thanks for the reply.

Maybe I missed something, but all I could find in your post is a picture. No code.
0 Kudos
Message 3 of 4
(2,955 Views)
I included a picture as a snapshot of the code. I normally only post such images, because I encourage you to discover things on your own.

If you have any questions about the code/image, feel free to ask!

Ton
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 4 of 4
(2,946 Views)