# LabVIEW

cancel
Showing results for
Did you mean:

Solved!
Go to solution

## Boolean change in array

I have an array of dbl (10k size) that I have the indices for a value in range. the filtered data provides the Boolean result. the next step is to find how many times the data changes from true to false, in addition I need the index of the false condition. I have been unable to come up with or find a solution that provides the necessary data from the array.

Message 1 of 6
(1,277 Views)

## Re: Boolean change in array

Can you back up a few steps, and explain what data do you have, and what data you want?

For example: I have an array of 10k doubles representing the temperature taken every 100ms. I want to find the amount of time the temperature was above a certain limit.

Message 2 of 6
(1,260 Views)
Solution
Accepted by topic author rfm1957

## Re: Boolean change in array

Do you need something like this?

Message 3 of 6
(1,252 Views)

## Re: Boolean change in array

Gregory,

i have an array of data that has been filtered.  The Boolean array provides the indices for the in range result. From the filtered data i need to find the indices of the state change from true to false (in this dataset there should be an array of 12 indices for the array.  I have attached the vi I am currently filtering.

regards

Message 4 of 6
(1,225 Views)

## Re: Boolean change in array

perfect thank you

Message 5 of 6
(1,220 Views)

## Re: Boolean change in array

@rfm1957 wrote:

Gregory,

i have an array of data that has been filtered.  The Boolean array provides the indices for the in range result. From the filtered data i need to find the indices of the state change from true to false (in this dataset there should be an array of 12 indices for the array.  I have attached the vi I am currently filtering.

regards

You don't need the FOR loop around In Range and Coerce because it can accept an array.

Message 6 of 6
(1,133 Views)