LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Count number of consecutive T or F in a boolean array

Hi,

IN the attachad boolean array I should ignore the first consecutive true or false values and then count the number of second consecutive T or F. In this example it is 4 but it can be any value. Could you please help me how can I ignore the first bits and then count up the second one

Thanks

0 Kudos
Message 1 of 3
(3,455 Views)

nothing easier

!0.png

There are probably 20 ways to do this without getting nominated for inclusion in the Rube Goldberg threadSmiley Wink


"Should be" isn't "Is" -Jay
0 Kudos
Message 2 of 3
(3,448 Views)

tintin_99 wrote:

IN the attachad boolean array I should ignore the first consecutive true or false values and then count the number of second consecutive T or F. In this example it is 4 but it can be any value. Could you please help me how can I ignore the first bits and then count up the second one


Well, a unique solution does not go well with "or" (...count the number of second consecutive T or F...). Are the T and F stretches always the same size? How is this assumption guaranteed?


Jeff·Þ·Bohrer wrote:

There are probably 20 ways to do this without getting nominated for inclusion in the Rube Goldberg threadSmiley Wink


And there are hundreds more that qualify for an inclusion. I would do a "boolean to 0,1", followed by an FFT, then looking for the fundamental frequency and convert it to a wavelenght. 😄

0 Kudos
Message 3 of 3
(3,419 Views)