LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Analyzing Graph Data

Hi,

I'm trying to make an equation that will be able to get the peak Y values from two peaks on a graph and find the difference in these values.  The attached image might clarify it a bit more.  The best solution would be something that actually found the peak values and then gave the difference, but for now I think using the Y values from the cursor legend will be sufficient.  For this example, what I would be looking for is basically the 208 - 189= # Displayed somewhere

Is this possible with LabVIEW?

Thanks,
Mike
0 Kudos
Message 1 of 9
(3,094 Views)

Hi Mike,

why are the marked points are values you want to find, but the first one with a value of 420 not? Smiley Wink

Mike



Message Edited by MikeS81 on 07-29-2008 08:43 AM
0 Kudos
Message 2 of 9
(3,069 Views)
I don't really understand what you are trying to ask, but I'm just trying to get LabVIEW to display the difference in the Y Values for you and maybe in the future get it to actually find the peaks.

Thanks
0 Kudos
Message 3 of 9
(3,062 Views)

Hi Mike,

use a property node. First select the active cursor and then read the Cursor -> CursorPosition -> Cursor Y value. You can do it in a for loop.

Mike

0 Kudos
Message 4 of 9
(3,058 Views)
Thanks,

But the problem is now I cant get it to give the value of the first cursor.  It only gives the value of the second cursor for both property nodes.  I tried selecting each one in the cursor legend prior to making the node, but it didn't make a difference. ill keep trying different things.

Mike


Message Edited by Mike415 on 07-29-2008 10:28 AM
0 Kudos
Message 5 of 9
(3,037 Views)
Hi Mike,
connect a "0" for the first plot and a "1" for the second. If you do it in a for loop you can directly connect the iteration counter "i". Connect the result (the y value of your cursor) to the for loop. You have by default autoindexing so that you get an array. Use the index array function, resize it to two outputs and use the subtract function to get your result.

Hope it helps.
Mike
0 Kudos
Message 6 of 9
(3,033 Views)
This is where I am at and I'm sure its way off.  Smiley Sad I really appreciate this.  I don't know whether to use one for loop, or one for each, or just one for the equation etc.  Ive been stumbling around on this all morning.

Thanks
0 Kudos
Message 7 of 9
(3,017 Views)
Hi Mike,
see the picture, it shows how to do it.
Mike
0 Kudos
Message 8 of 9
(3,008 Views)
It worked! Smiley Very Happy

Thanks so much
Message 9 of 9
(2,994 Views)