LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I call another event from the current event in an event structure ?

1
0 Kudos
Message 1 of 5
(3,139 Views)
You need Labview 7.

1) using dynamic event

or

2) using value (signal) as an event condition. any changes to the value will signal the event

-Joe
Message 2 of 5
(3,139 Views)
Hi,

There are a couple of examples that you can look at that ship with LabVIEW (Help >> Find Examples):
1) Dynamically Register For Events.vi
2) Programmatically Fire Events.vi

I hope this helps.

Feroz
National Instruments
0 Kudos
Message 3 of 5
(3,139 Views)
I don't believe though that the other event will actually execute
until the first one completely finishes. Even if you use a sequence
to call the other event. The other event's timecode will indicate
when it was called or placed in the queue to be executed. Note this
behavior is different than other languages (Delphi for example) where
a second event can be made to execute at any point in time from within
another event.

Steve
0 Kudos
Message 4 of 5
(3,139 Views)
> I don't believe though that the other event will actually execute
> until the first one completely finishes. Even if you use a sequence
> to call the other event. The other event's timecode will indicate
> when it was called or placed in the queue to be executed. Note this
> behavior is different than other languages (Delphi for example) where
> a second event can be made to execute at any point in time from within
> another event.
>

This is an important thing to remember, and hopefully the terminology
will help. LV doesn't execute events, it delivers or fires or posts them.

Some systems have both mechanisms, Windows uses the terms SendEvent and
PostEvent. SendEvent is a function call, there is nothing event like
about it excep
t that your parameters are locked into an event structure.
These Sent Events cut in line and block everything until returned.
Posted messages on the otherhand go into a queue and execute when their
turn comes. Posted messages provide for asynchronous notification.

If you have more questions, ask away.

Greg McKaskle
0 Kudos
Message 5 of 5
(3,139 Views)