01-22-2016 02:28 PM
Hello I am trying to set an upper limit and a lower limit for my array of data. I am not getting the results I want so I am wondering if i am using this correctly?
Solved! Go to Solution.
01-22-2016 03:21 PM
Use scalers (not arrays) or your Uppper Limit and Lower Limit.
01-23-2016 05:57 PM
based on ploy morphology you can make code like this
01-24-2016 08:53 AM
You ask "I wonder if I am using this correctly". To which I say, "I don't know, as you haven't told us what you want to do". There are a few subtlies with this function, which are (fairly) clearly spelled out in the Detailed Help -- I hope you read that. You can specify arrays as the upper and lower limits, but if all of the array elements are the same, it certainly is "neater" to use a scalar. The values you are coercing are Floats, so the distinction between the open and closed diamond symbols may not be as important as for Integers (because of the potential uncertainty of equality checks for floats), but this is also something you should consider.
So, what are you trying to accomplish? Do you want to "clip" your data and replace "out of range" numbers with "edge" values? Do you want to simply know that the data are all in-range? Do you want to remove out-of-range values from the array? And finally, what are the "results I want"?
Bob Schor
01-24-2016 09:05 AM
Sorry Bob I seem to not explain myself completely at times. I would like to remove the out of range time values from the array. So if I have a time range from 0-8000 on the x-axis, I would set the range from 2000-5000 which corresponds to the x-axis values. Then I would use my peak detector function on those values. The reason why I am doing this because on my modules i get values that I do not want at the beginning of the array. Thank you I hope this makes better sense on what Im trying to accomplish and what type of results I should get.
01-24-2016 09:59 AM
01-24-2016 10:10 AM
So all I would have to do is put the starting point in the length node of the array subset.
01-24-2016 10:11 AM
01-24-2016 10:52 AM
So index is starting point and the length is how far I want it to go?
01-24-2016 11:00 AM