02-18-2019 09:05 AM
I have a button, and the mechanical action is latch when released. But when I run the program, its working as switch when released and not latch. What could be the cause of this. I have used this same code in another vi in this project, there the latch when released works perfectly.
Solved! Go to Solution.
02-18-2019 09:14 AM
I'm pretty sure that the problem is that you've built the block diagram incorrectly. Just fix the mistake(s) and it will work fine.
02-18-2019 09:20 AM
Did you put the terminal of the button outside its event case?
02-18-2019 09:38 AM
When you program incorrectly, your function or program might not work (as you describe the misbehavior of "Latch when released"). if you want us to explain your mistake to you, you have to show us your mistake by posting your code. Otherwise, we have to "guess" what mistake you made, and how you made it (see JICR's "guess" at "what you did wrong"). Do you know what "Latch when released" means? Are you using the Boolean switch correctly?
If you can't "fix it yourself", post your code and you'll get an answer/explanation quickly.
Bob Schor
02-18-2019 09:53 AM
yes you are 100% correct. I kept the button outside the event case.