03-10-2011 08:30 AM
hello and good day to everyone..
I'm trying to make a case change from false to true after receiving 3 or more signal from a boolen.
situation example, the signal is send but the case will change to true after three times of signal is receive then the turn to true case. If only two times of
signal is receive, the case will not change..
Does anyone have any suggestions or ideas how to create it? Or have another ways to solve it?
best regards,
leman lennon
Solved! Go to Solution.
03-10-2011 08:47 AM - edited 03-10-2011 08:48 AM
You would use a shift register to track how many times the boolean is true. If true, then increment. If false, then don't. If the value in the shift register =3 AND the value is true, then run your case structure.
03-10-2011 08:52 AM
Here is a small example showing what explained Ravens Fan.
It looks for 3 changing states from False to True, then stop the While loop.
You can easily insert this kind of logic into your code.
Regards,
Olivier L. | Certified LabVIEW Developer
03-10-2011 09:22 AM
A great thanks to Ravens Fan and Olivier_L because show me more details... Its works.. But somehow either it will working with a PLC machine or not because the signal is very fast.. I'll try it tomorrow.By the way.Thanks.. 🙂
regards
leman lennon