LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Boolean change in array

Solved!
Go to solution

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.

0 Kudos
Message 1 of 6
(2,460 Views)

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.

0 Kudos
Message 2 of 6
(2,443 Views)
Solution
Accepted by topic author rfm1957

Do you need something like this? 

 

snip.png

Message 3 of 6
(2,435 Views)

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

 

rfm1957_1-1600462809693.png

 

rfm1957_0-1600462417835.png

 

0 Kudos
Message 4 of 6
(2,408 Views)

perfect thank you

0 Kudos
Message 5 of 6
(2,403 Views)

@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

 

rfm1957_1-1600462809693.png

 

rfm1957_0-1600462417835.png

 


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

0 Kudos
Message 6 of 6
(2,316 Views)