07-14-2023 09:53 AM
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??
Solved! Go to Solution.
07-14-2023 10:20 AM - edited 07-14-2023 10:30 AM
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.
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.
07-14-2023 10:41 AM
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.