02-24-2016 05:53 AM
Hello,
My setup is rather complicated (and doesn't work properly yet) ... anyway I attach the whole code.
What I'm interested in at this moment is how to save for posterior use the value of variable "Polarization" on rising edge of "Min. Found".
The 1st idea that come is create another event case for "Min. Found" changes, where save in a shift register, but problem is "Min. Found" changes will fire on both rising and falling edges.
Thanks in advance
Pavel
Solved! Go to Solution.
02-24-2016 05:58 AM
Pavel_47 wrote: but problem is "Min. Found" changes will fire on both rising and falling edges.
It is actually worse than that. The Min Found Value Change will fire with any write, regardless if the value changed or not. This is one of the dangers of using the Value (Signaling) property.
Do a search for Boolean Crossing PtByPt. It is a useful VI for this situation. It will output a TRUE with the edge that you tell it. After that, just use a case structure and do whatever calculations you want in there.
02-24-2016 07:19 AM
Thanks,
Indeed, very useful block