From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

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,589 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,545 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,541 Views)