10-24-2005 06:23 AM - edited 10-24-2005 06:23 AM
Message Edited by NewOne on 10-24-2005 06:24 AM
10-24-2005 06:28 AM
Hi
I could not look at you vi because I still use LV7.0.
I just made a vi as you described - it works without any problems and the indicator changes its state when I release the button.
Thomas
10-24-2005 06:41 AM
Hello,
I think you have to configure the button as Latch when released. Then the Button will released automaticly..
Ciao TPoint.
10-24-2005 06:50 AM
Sorry TPoint
NewOne is right. If he wants to change the state of the LED when he releases the button, he has to set the button to "Switch when released".
The difference between is that if you use "Switch when ..." the button keeps this state. If you select "Latch when ..." it is just a short impulse.
Thomas
10-24-2005 07:04 AM
10-24-2005 07:11 AM
I think now you're mixing up the things.
NewOne wanted the button to switch when released and obviously he wired the button directly to the LED.
There is nothing saying that he wants anything to be latched.
Thomas
10-24-2005 07:11 AM
10-24-2005 07:22 AM
Hi,
The problem is not with your understanding, but with the while loop.
In this case (Switch when Released), the action is taken at the end of each iteration, but since the latch is not there, the button wouldn't come to its original position.
hope it explains.
10-24-2005 08:07 AM
Thats what i thought first.
I thought "release" stands for "button goes in original position"
Now i know "release" stands for "stop pressing the
mouse-button". If you hold the mouse button and the while-loop executes
100times but the LED goes TRUE when i stop pressing the button. So it
works like explained in the help-file.