From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
09-18-2020 02:18 PM
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.
Solved! Go to Solution.
09-18-2020 02:48 PM
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.
09-18-2020 03:04 PM
Do you need something like this?
09-18-2020 04:00 PM
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
09-18-2020 04:06 PM
perfect thank you
09-21-2020 06:31 AM
@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.