08-27-2012 04:21 PM
I have a question about a while loop. Currently, I have 4 or 5 dynamic data lines that I would like to run through a while loop that will tell me if the data is within a certain range or not. However, the ranges are different for each piece of data, and I dont know how to do each one separately. Do I have to make 5 different while loops? Thanks!
08-27-2012 04:29 PM
Hi,
You could use arrays to hold the wave forms and the limits, then use indexing of a loop to pick the waveform and limits for each loop.
So the arrays would feed into a loop, and inside the loop would be your analysis of the waveform and limits that are passed in.
08-27-2012 04:51 PM
@pg22aw wrote:
I have a question about a while loop. Currently, I have 4 or 5 dynamic data lines that I would like to run through a while loop that will tell me if the data is within a certain range or not. However, the ranges are different for each piece of data, and I dont know how to do each one separately. Do I have to make 5 different while loops? Thanks!
Do you want to compare the value with a defined value and also the ranges for the 5 data is different?. What are you doing in the while loop. If the data is in an array of dynamic data you can seperate the amplitude value and check the whole array of value with the ranges that is also build same as the data theh you will get the output as a boolean array.