LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to find x values from a given y value.

Solved!
Go to solution

I have an array of values that simulate a graded potential/action potential graph. Depending on the values given by the user, my Waveform graph plots this array. However, I need to find the x value (in this case, time) at which the graph crosses a threshold. Since it's a graph that acts like a sine wave, sometimes it crosses the threshold twice or even more. 

0 Kudos
Message 1 of 5
(5,155 Views)

You should show some code.

 

Typically I keep time values in an asrray with my data in a situation like this. Then I can simply do a comparison on the amplitude to find when something achieves what I'm looking for, whether that is and amplitude, falling, or rising, and then the same index in the time array is where my time value is.

Glad to answer questions. Thanks for any KUDOS or marked solutions 😉
0 Kudos
Message 2 of 5
(5,143 Views)
Solution
Accepted by Edithvvalle

Have you tried threshold 1d Array yet ?

Use a loop the find all crosses.

 

Untitled1.png

 

 

 

George Zou
0 Kudos
Message 3 of 5
(5,136 Views)

It wasn't working earlier when I tried it, but it just did. Thank you so much!!

0 Kudos
Message 4 of 5
(5,118 Views)

block.jpgUnbenannt.jpgHi, I have tried "threshold 1D Array" to find the 2 interpolated x-values at one certain y-value with for-Loop and while - Loop. But I get only the first x-value (or 2 the same x-value) in the output Array . Can you please tell me how I can fix this Problem?

 

I have also tried with the Cursor Y at the exact value -45dB but actually I don't know how to fix Cursor Y exactly at one certain Y-value.

 

(I am learning Labview just for few days and not yet familiar with all functions. Thanks for you help).

Thuy

 

 

Download All
0 Kudos
Message 5 of 5
(4,430 Views)