LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Events In Order

Hello.
 
A quick question if I may.
I have 2 switches on my vi.
One for enable and one for run. The enable switch must be pressed before the run switch.
If enable switch is pressed then the enable output is on.
The enable and the run have to be pressed for the run output to come on.
 But it is vital that if the run switch pressed first the enable switch will not work. I would rather not use time delays.
 
I tried looking at cases, structures and events, but I could not get them to function as I would like.
 
Thanks for your help.
 
0 Kudos
Message 1 of 6
(3,052 Views)
You need to create a property node. Right click on the control or the terminal and select Create>>Property Node. Then, select the Disable property. This will allow you to disable a control so that the user can't use it (read the help for the property for more details).

___________________
Try to take over the world!
0 Kudos
Message 2 of 6
(3,049 Views)
Sorry I am not following.
 
Do I use the disable property node to disable a control if it has been pressed in the wrong sequence?
I only want the output to come on if the 2 buttons have been pressed in a correct sequence, enable and then run.
0 Kudos
Message 3 of 6
(3,039 Views)

Hi Thomas,

      Here's an example (in 7.1) of how you might use a property node to achieve the functionality you described!

(NOTE: refinements will be left to the student Smiley Wink  )

Message Edited by Dynamik on 12-10-2005 12:48 AM

When they give imbeciles handicap-parking, I won't have so far to walk!
0 Kudos
Message 4 of 6
(3,018 Views)
While Dynamik's response does fit your requirements, I was thinking along the lines of disabling the run button as long as the the enable button is false. This will force you to click the enable button before you can click the run button, which is better if this has to be the case - instead of the users pushing the run button and then realizing that they needed to press enable, you simply don't let them press enable. If there is a case where the run button can be pressed without enable, you can ignore this, of course.

___________________
Try to take over the world!
0 Kudos
Message 5 of 6
(3,005 Views)

I understand better now.

Thanks guys for the help.

0 Kudos
Message 6 of 6
(2,988 Views)