LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Only want one value from array

Solved!
Go to solution

Hi

 

I am having some problems trying to get a single element out of an array. As you can see I am getting a number of t Values and I am only interested in the highlighted one, or the first one above 1.09E-5. Is there an easy way to only get this?

I have tried a while loop, but that won't work.

The logic I tried using is that if the value is greater than 2E-5 then store the value and stop, but the comparison or greater than can not take data of that type or something.

I have no other ideas and I'm sure labview has somthing than can do this.

 

FrontPanel.PNG

 

 

 

snippet.png

 

 

Thanks for the help

0 Kudos
Message 1 of 5
(3,331 Views)

oelias23 wrote:

 

The logic I tried using is that if the value is greater than 2E-5 then store the value and stop, but the comparison or greater than can not take data of that type or something.


Where in your code are you trying to do this?  I see two comparison of > 0.07 and they look to be wired up okay.  What do you mean by "cannot take data of that type or something"?  Show us some code where you are getting that error.

0 Kudos
Message 2 of 5
(3,311 Views)
Solution
Accepted by topic author oelias23
I must have missed something...

Example_VI.png
Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

Message 3 of 5
(3,292 Views)
Huh?
Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

0 Kudos
Message 4 of 5
(3,251 Views)

Yea I was doing the same thing but instead of the for loop, I was trying to use a while loop, but yours works.

 

Thanks

0 Kudos
Message 5 of 5
(3,204 Views)