11-21-2011 07:03 AM
Hi all.
I'am a relatively new LabVIEW'er and I have a problem which maybe for some people is easy to solve.
I need to replace a value in a array that when it exceeds a given threshold it replace the exceeded value with the last not-exceeded occurring value. Do it make sense?
I trying to incorporate a Case Structure and so far I've think I got it right with the TRUE situaiton but I need some help with the FALSE situation.
Thanks!
Solved! Go to Solution.
11-21-2011 07:06 AM
And here is my VI so far.
11-21-2011 07:10 AM
11-21-2011 07:17 AM
11-21-2011 07:22 AM
Hi. Thanks for reply.
Could you post me a labview version of your solution. I think I would be able to understand it better then.
- Clausny
11-21-2011 07:24 AM
11-21-2011 07:33 AM
Sorry, but when I drag it to my VI I got nothing. I am using a windows computer.
11-21-2011 07:35 AM - edited 11-21-2011 07:36 AM
11-21-2011 08:10 AM
Thanks, that helped!
Fine solution but beside that I now do not need loops, is there any functional differents? Maybe there is and I just can't see it. My point is that I want the exceeded value to be replaced by the last occerring not-exceeded value.
I do not know have exactly this "Select" vi works. Does the false case take the last not-exceeded value and replace the exceeded value?
Sorry for my stupidity
11-21-2011 08:14 AM - edited 11-21-2011 08:15 AM
Hi Clausny,
the help for Select says:
"Returns the value wired to the t input or f input, depending on the value of s. If s is TRUE, this function returns the value wired to t. If s is FALSE, this function returns the value wired to f."
The last "good" value is stored in the shift register.
Replacing is done by using autoindexing at both input and output in the 2nd example, the 1st one uses an Inplace structure.
"beside that I now do not need loops"
??? Both examples use a FOR loop...