LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

find index of some element in array

Hi:
   I have a long array and there are lots of 1 and 0 . I wanna figure out the index of each 1 and send these indices to text file.
 
  I try to use the search 1D array function, but I can only get the index of the first 1. How can I get all the indices ?
 
Thanks in advance.
 
 
0 Kudos
Message 1 of 4
(2,671 Views)
This seems to be a recurring theme here. Is this homework??? 😉
 
Anyway, do a search here in the forum and you'll find earlier threads such as this . I am sure you'll find what you need. 😄
 
 
.
0 Kudos
Message 2 of 4
(2,658 Views)
Hi,
 
could think of this logic in haste.
 
would love to see anyone implement a much simpler/ elegant approach
 
regards
Dev
Message 3 of 4
(2,651 Views)

Oh!

me running on a lag!

saw the whole series of solutions to choose from

 

0 Kudos
Message 4 of 4
(2,650 Views)