10-06-2008 09:28 AM
just thought to attach the quick test program I made to varify I understood how to implement this method of making a generic user event refnum.
Maybe it is useful if you don't immediately understand whats going on.
hope its useful,
paul.
10-06-2008 09:54 AM
10-06-2008 11:24 AM
Yes great idea!
On similar lines, I could create an events class to wrap everything together. So the class would have a cluster with event enumerator, and variant data. Then create methods like addEventType, createEvent, sendEvent, receiveEvent, and a destructor, as you suggested for the action machine.
These two ideas, a class or an action machine seem equivalent. I guess the difference is that in the class you can store all the events and methods together, but in the action machine you only temporarily store the data while you pass it around the different vi's that broadcast or listen to the user events.
But I am not used to using action machines, so its not clear to me when I should use one instead of making a labview class.
Thanks for the suggestion!
Paul.
10-06-2008 01:02 PM
10-06-2008 02:36 PM
Sorry I had overlooked your post, "LVx" (cool name) seems to be exactly what I am looking for!
Information at:
http://forums.lavag.org/LVx-Exported-LV-Functionality-t9437.html
Thanks for your tip!
Paul.