LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Latch when released not working

Solved!
Go to solution

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. 

0 Kudos
Message 1 of 5
(2,350 Views)

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.

"If you weren't supposed to push it, it wouldn't be a button."
0 Kudos
Message 2 of 5
(2,348 Views)
Solution
Accepted by topic author govindsankar

Did you put the terminal of the button outside its event case?

0 Kudos
Message 3 of 5
(2,345 Views)

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

0 Kudos
Message 4 of 5
(2,334 Views)

yes you are 100% correct. I kept the button outside the event case. 

0 Kudos
Message 5 of 5
(2,329 Views)