This widget could not be displayed.
This widget could not be displayed.

LabVIEW

This widget could not be displayed.
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.

This widget could not be displayed.
This widget could not be displayed.
This widget could not be displayed.
0 Kudos
Message 1 of 6
(3,692 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.

This widget could not be displayed.
This widget could not be displayed.
This widget could not be displayed.
0 Kudos
Message 2 of 6
(3,675 Views)

Do you need something like this? 

 

snip.png

This widget could not be displayed.
This widget could not be displayed.
This widget could not be displayed.
Message 3 of 6
(3,667 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

 

This widget could not be displayed.
This widget could not be displayed.
This widget could not be displayed.
0 Kudos
Message 4 of 6
(3,640 Views)

perfect thank you

This widget could not be displayed.
This widget could not be displayed.
This widget could not be displayed.
0 Kudos
Message 5 of 6
(3,635 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.

This widget could not be displayed.
This widget could not be displayed.
This widget could not be displayed.
0 Kudos
Message 6 of 6
(3,548 Views)