04-19-2017 05:35 AM
Hello all,
I wrote a VI with a case sturcture. if a button gives a true value then go to case "true" state, if it gives a false value then go to case "false" state.
Now for the properties of the button i used "switch when pressed", so the value of the button should only change when i press the button. But the button switches off automaticaly ... how? and how can i solve it?
See attachment for the VI
04-19-2017 05:47 AM - edited 04-19-2017 05:48 AM
Hi sadiek,
But the button switches off automaticaly ... how?
Well, did you debug your VI? You should see how (and when) it switches off…
and how can i solve it?
Remove local variables as much as possible. One of them is responsible for switching the button off!
Hints:
- Replace the sequence by a statemachine. (This way you also don't need all those locals inside!)
- Don't use the same label for several indicators! You wouldn't do this in text-based programming…
04-19-2017 08:34 PM - edited 04-19-2017 08:34 PM
I can't open your VI because I cant find RSCOM.dll
04-20-2017 01:30 AM
04-20-2017 12:13 PM
Thank you, it worked. Altough i have another problem now. But im going to try and fix it myself first 🙂
04-20-2017 05:28 PM
I wanted to actually run it so I could debug it step by step rather than just looking at it haha.
But thanks for the reply (: I did initially cancel it but thought it would be easier to debug for myself if it was running (: