LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

run event structure on startup

i have an event structure in a while loop.
 
when I run the vi i wish to run one of the events 1 time without a user input.
 
can this be done?? and if so how??
0 Kudos
Message 1 of 5
(2,428 Views)
Is this event tied to a front panel control? If so you can use the "Value (Signaling)" property, like this:




Message Edited by smercurio_fc on 03-17-200605:37 PM

0 Kudos
Message 2 of 5
(2,419 Views)
i tried what you suggested but it did not work for me i am including a sample vi to show what basically i have now.
0 Kudos
Message 3 of 5
(2,414 Views)
If you aren't going to use timeout event, you can use it for your example.  See attached vi.
 
George Zou
George Zou
0 Kudos
Message 4 of 5
(2,408 Views)

This does not work with latch action booleans, you need to fake latch action with a switch action and a local variable. The attached modification show a working version of your VI.

Of course I typically prefer a solution similar to George's.

The need for a generic "first run" event has been discussed before, see my example and discussion in this old thread:

http://forums.ni.com/ni/board/message?board.id=170&message.id=108599#M108599

😄

Message Edited by altenbach on 03-17-2006 08:20 PM

Message 5 of 5
(2,402 Views)