LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Get Name from Event for using in state machine

Hello
I use a case loop to catch user events like pushing a button.
then from the eventloop i  start a statemachine. In some states i must decide which is next state in dependency of which event startet the state machine. I want to use the eventname for this.
 How can i get the event name of the eventloop?
thx simon
Using Labview 7.1
0 Kudos
Message 1 of 3
(2,646 Views)

I am confused by your description.

  • How many loops do you actually have? (You list "case loop" "eventloop", and "state machine")
  • Why do you use a "case loop" (whatevet that is)  to catch user events, wouldn't a loop with an event structure more appropriate for this?
  • Do you possible have an event case triggered by multiple controls and want to know which control triggered the event?

It would help if you could attach a simplified example so we understand your problem better. Thanks! 🙂

0 Kudos
Message 2 of 3
(2,638 Views)

The attached LV 7.1 example is a modification of the example that can be found at

labview\examples\general\uievents.llb

titled "Event Tracking"

This version illustrates how to distinguish between events from multiple controls that are handled by a single event.

I hope this helps,

Ben

Message Edited by Ben on 10-28-2006 11:54 AM

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 3 of 3
(2,634 Views)