LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

1D threshold giving me zero

Solved!
Go to solution

I am trying to use the 1D Threshold to give me the x index of the y values in order to find the time constant; however, the 1D Threshold is giving me zero when there clearly is that value in the data. Anyone know why it is doing that?

 

Thank you

0 Kudos
Message 1 of 2
(2,718 Views)
Solution
Accepted by topic author TylerHoot13

Read the documentation.  Threshold 1D Array expects a constantly increasing array.  And since your first point in the array is larger than your given threshold, it says that 0 is the first point that exceeds your threshold.

 

You could reverse the array and then subtract the result from the number of points in the array to get your desired index.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 2 of 2
(2,708 Views)