LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

pair off true and false

hi
 
i need to pair off an array of boolean, the following is the rules

1.pair off OFF-ON, not ON-OFF
2.pair from the beginning of array to the end
3.input is an array of boolean, output is the index of elements which haved been paired off
 
attached is an example
 
how can i do that?
 
thanks in advance
 
0 Kudos
Message 1 of 5
(3,058 Views)

Why are 6 and 9 paired off?

David

0 Kudos
Message 2 of 5
(3,047 Views)

Sorry, forget to mention that

this pair seems like the C grammar

{                                              // 1

          {                                   // 2

           .......

          }                                  // 3

}                                            // 4

so 1 must pair 4, and 2 pair 3

 

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

A few more bits of info would be helpful.

Is your boolean array always the same size? Maybe, array size is odd, even or both.

How many F->T indent nest levels can there be?

David

 

Message Edited by David Crawford on 10-03-2006 12:52 PM

Message Edited by David Crawford on 10-03-2006 12:55 PM

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

array size can be odd, even or both

the max nest level is 3

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