LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

problem in event structure

Solved!
Go to solution
I am using an event structure and have a problem. I am using an event where the event is enter button mouse up. I have a boolean in the timeout event. I need this boolean when it is true to disable the enter button mouse(the enter button wont do anything anymore) up because if I press the enter button the whole vi is ruined
0 Kudos
Message 1 of 7
(3,559 Views)

Please post your VI.

I assume that you did not place the enter button within it's appropriate event case.

 

Norbert 

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 2 of 7
(3,554 Views)

i posted an example of what i need.

 

See the vi and this is what i need:

 

When boolean 3 is switched off, if i press enter button then the boolean is lit. If i switched off boolean 3 later and press the enter button then the boolean will lit off. I need the boolean to disable the enter button when it is pressed so that the boolean doesnt turn off again. Note dont tell me to use another while loop. I need one while loop (the outer one) and it shouldnt be disabled

0 Kudos
Message 3 of 7
(3,544 Views)
Did anyone find a solution to this problem??
0 Kudos
Message 4 of 7
(3,526 Views)
Solution
Accepted by topic author unknown19
This should work.
Tim
GHSP
Message 5 of 7
(3,513 Views)
Thanks you very very much!!!
0 Kudos
Message 6 of 7
(3,502 Views)

Hi unknown19,

 

You might want to try the attached version as well. I modified your VI a bit more: you can use Stop button to stop the VI; and I used the Mouse Down? filter event of the Enter to disable the button and to discard the Mouse Down event if conditions are not met (i.e. boolean2 is on). You might need to change the logic a little if it does not work exactly as you expect.

 

I hope this helps.

 

Regards,

Barna 

 

0 Kudos
Message 7 of 7
(3,460 Views)