CSLUG - Central South LabVIEW User Group (UK)

cancel
Showing results for 
Search instead for 
Did you mean: 

CSLUG Event Machine Demo.zip

Hello everyone

Just thought I would share with you all a little snippet of code to highlight an idea I have been looking at whereby you can use user events to creat an event driven state machine (without queues).

Each state being represented as a user event.

This idea was sparked by a presentation given by Justin Goeres at NI Week about private and public scoped user events. I have also seen similar architectures appear on the NI forums in recent week.

The nice thing about user events is that they are 1 to many, so you could have several "Event machines" all registered to respond to a single user event. Got to be careful here.

Please feel free to comment good or bad on this idea, I am currently trying to use this concept in a medium sized "out of hours" project so I guess I will find out soon enough if there are any drawbacks.

Cheers

Chris Roebuck

Don't forget to give Kudo's for a good answer !

LabVIEW Champion
Certified LabVIEW Architect
Certified TestStand Architect
0 Kudos
Message 1 of 2
(6,907 Views)

Ooops , forgot to say. Once unzipped, open and run EventMachine_Main.vi , this should also launch the API tester

Enjoy !

Don't forget to give Kudo's for a good answer !

LabVIEW Champion
Certified LabVIEW Architect
Certified TestStand Architect
0 Kudos
Message 2 of 2
(3,488 Views)