LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Finding the x value where a y value crosses a threshold in a chart

When creating a plot of a curve derived from measurements, I need to find the x value for the point where the curve goes above a given value on the y axis (e.g. 50) - or at least the closest x value for the next y value above that crossing . Judging from the LabView documentation, the limit test vis do not give the x value I need. How can i accomplish that? Maybe this can be done using MathScript?
0 Kudos
Message 1 of 7
(3,009 Views)
The Threshold 1D Array function will do that, assuming your data is monotonically increasing.
Message 2 of 7
(3,007 Views)
There exists an example for what you would like to do.
 
Under the Help Menu, do a search for Waveforms (with an s - plural).
 
You should be able to find an example called "Search Waveform Example.vi".
 
It looks like the image below:
 
RayR
 


Message Edited by JoeLabView on 06-15-2008 01:44 PM
Message 3 of 7
(3,006 Views)
Thanks!

That indeed was just what I needed. I wasted half a day looking for something like this, but obviously in all the wrong places 😞

Cheers,

Bernhard

0 Kudos
Message 4 of 7
(2,981 Views)

Two good places to look for info and examples are the Example Finder (Help > Search) and this forum..  🙂

Usually, solutions are easier than people think.  Glad to read it helped.

RayR

Message 5 of 7
(2,971 Views)

If you look at this example, it looks to me like it is missing a whole load of crossing indices.

 

Has anyone take a closer look at this?

 

I also need a VI that is the equivalent of threshold 1-d array, but works for oscillating data.

 

Any thoughts?

 

Don

0 Kudos
Message 6 of 7
(2,674 Views)

Anyone had a chance to take a look at this example to verify that it is not working properly, and whether it will be corrected?

 

Don

0 Kudos
Message 7 of 7
(2,653 Views)