LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Combining Arrays

Solved!
Go to solution

Hi,

 

I am currently writing a program that is searching for temperature values in a 1d array to look for and remove below a certain threshold. However, I need to add another degree of complexity to the program. Each temp value corresponds to a current value and I need to figure out a way to write a way to make each temp value correspond to its current value. Ie. I am not sure how to write a program that searches for a bad current value and then removes the corresponding temp value. I really need help with this, any takers??

 

 

0 Kudos
Message 1 of 3
(672 Views)
Solution
Accepted by topic author lenkmobile

Maybe combine your two arrays into a 2D array with two columns and remove the rows that match certain criteria using an autoindexing FOR loop and a conditional output tunnel.

 

 

altenbach_0-1689348418294.png

 

 

We typically can give much more specific advice of you would attach a simple VI containing some default data.

 

Of course in a well designed program, the data is already in a 2D array from the beginning. If you want to operate on the two separate 1D array (herding cats!), you can use the same FOR loop and autoidnex on both, then use the temperature condition for both conditional output tunnels.

0 Kudos
Message 2 of 3
(662 Views)

Science is not the place for well-designed programs, I learned this program 2 days ago! I really appreciate the help, you are a beast. Here is what I have as a program, the threshold moves so I will try to input the advice you have given me.

0 Kudos
Message 3 of 3
(642 Views)