LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Triggering events in LabVIEW 7.0

I need to execute one of my event cases upon startup as an
initialization step. For example, I have 3 different cases that monitor
Boolean1, Boolean2 and Boolean3 Value Change events. I need to execute
the Boolean1 Value Change Event case upon startup. Is there a way to do
this? I've tried adding anothing event to that case (BooleanInit Value
Change) and programmatically setting that value to trigger the event but
to no avail.

Any help?
0 Kudos
Message 1 of 3
(2,774 Views)
One solution is to change the value of the boolean by using the value(signaling) property. Unlike e.g. changing the value using a local this will trigger an event (events like this only trigger when there has been a user interface activity, that's why using a local won't work).

The other solution is to add your own user defined event and then set that event prior to doing anything else in the application. Check out the user event examples to see how you create and trigger such events.
0 Kudos
Message 2 of 3
(2,773 Views)
> I need to execute one of my event cases upon startup as an
> initialization step. For example, I have 3 different cases that monitor
> Boolean1, Boolean2 and Boolean3 Value Change events. I need to execute
> the Boolean1 Value Change Event case upon startup. Is there a way to do
> this? I've tried adding anothing event to that case (BooleanInit Value
> Change) and programmatically setting that value to trigger the event but
> to no avail.


The best solution is to make the code into a subVI and call that both in
your event structure and upon initialization.

Greg Mckaskle
0 Kudos
Message 3 of 3
(2,774 Views)