LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

with out button press .event should occur once

Hi is it possible to trigger the event when we run the program with out pressing any buttons in the code
0 Kudos
Message 1 of 15
(3,563 Views)

Use the property node "value.signaling".

 

Message 2 of 15
(3,562 Views)
Hi i am not clear for which property node of button or which one make me clear.Thanks you ya
0 Kudos
Message 3 of 15
(3,557 Views)
  • First you need to create a "value change" event for a control.
  • Now right-click on the control and "create... property node... value(signaling)"
  • Whenever you write a value to the signaling property, the "value change" event associated to the control will fire (even if the new value is the same as the old value).

 

Please let us know if this is still not clear.

Message 4 of 15
(3,546 Views)

OK, if you want to execute the main event once at program start, you can use one of the two techniques shown in this old post.

 

Message Edited by altenbach on 09-22-2008 12:05 AM
Message 5 of 15
(3,538 Views)
Thank a lot ya it is working
0 Kudos
Message 6 of 15
(3,533 Views)
Hi it is working fine for all type of button But not working for square shape OK button
0 Kudos
Message 7 of 15
(3,497 Views)

Check the Mechanical Action of that button. If it has Latching Action, then Val(Sig) wont work. Smiley Sad

 

You can visually easily check the Mech Action of a button from its Val(Sig) property node. Smiley Wink

 

If the color is green, then it has Switching action; if the color is purple, then it has Latching action. Smiley Happy

- Partha ( CLD until Oct 2027 🙂 )
Message 8 of 15
(3,489 Views)
I need it for latching action button.kindly help me out
0 Kudos
Message 9 of 15
(3,483 Views)

In the event case "value change", for the button, write it to false.

That will simulate the latching action.

Message 10 of 15
(3,480 Views)