LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Search Input Array

Solved!
Go to solution

I am trying to create a VI to search an input array of numbers for a specified value.  If that value is found in the array it should lite the LED and by indicating the corresponding index of the array.  I have attached what I have so far.  Any help would be greatly appreciated.

0 Kudos
Message 1 of 3
(2,600 Views)
Solution
Accepted by topic author Golfnut

You were on the right track when you placed the Search 1D Array primitive on your diagram, just don't place it in a For loop.

Sometime things are a lot simpler than you think Smiley Happy

 

Search Array.jpg

0 Kudos
Message 2 of 3
(2,556 Views)

Just guessing, but I think this is a homework, this kind often appears in the forum. The teacher asked for a VI which does what the Search Array primitive. Am I right?

0 Kudos
Message 3 of 3
(2,552 Views)