11-21-2008 01:23 AM
Hi,
I'm currently using LabVIEW 7.1 to develop my application. I have used an event based architecture in my program.
The Boolean controls are placed on a tab structure and based on which is clicked, the appropriate page would be shown. The Boolean controls are configures in a Latch mechanical action.
During runtime, I press a button "A" and the event takes me to the new page. When I click the "Back" Boolean button on that page I'm taken back to the previous page. However the button "A" still remains in "ON" rather than latching back to "OFF".
Am I doing something wrong here? I'm guessing its something simple that I've missed out.
Many thanks for your help.
Cheers!
Sanka
11-21-2008 01:44 AM
Hi Sanka,
are your booleans inside the loop? I think the best place is inside the belonging event case. To switch back to the other state, your control has to be read.
Mike
11-21-2008 07:33 AM
And in LV8 the terminal only has to be placed in the event case, not really connected, to switch back automatically. I thing in LV 7 additionally it had to be wired to switch back (am I right?).
greets, Dave
11-21-2008 09:08 AM
11-21-2008 06:11 PM
12-01-2008 05:07 AM
I just had the same problem, so i searched and found this thread.
My program is a event-driven program, and thus a while-loop outside all cases. By placing the latching button in the loop, but outside the cases it worked for me.
I tried it in the case first, and tried to force reads on the button but it didn't work, same with having it outside as a "global" button.
It's behaviour is abit tricky.
/Y
12-01-2008 05:23 AM
Yamaeda wrote:I just had the same problem, so i searched and found this thread.
My program is a event-driven program, and thus a while-loop outside all cases. By placing the latching button in the loop, but outside the cases it worked for me.
I tried it in the case first, and tried to force reads on the button but it didn't work, same with having it outside as a "global" button.
Hi,
Your description is incomplete, so we cannot really see what's going on. Can you attach a simplified example that shows the described behavior. SOmething does not sound right.