Hello all,
Finally there are better clues of how to use JKI state machine for exchanging data with others jki state machines (Thanks Justin!): Here is the link of the template library for that Justin Goeres created for his presentation at CLA summit 2011
Template jki intercommunication with other jki state machines
However, as Justin Goeres mentioned in the CLA summit 2011 (
VI SHOTS PODCAST), there is a problem when using his template if you need the timeout case in the event structure. Attached there is an example in labview 2010 (a little modification of what Justin Goeres' example) to try to make this problem clearer:
Whenever a registered event is fired, Labview will reset the timeout event structure in the event structure where this event is registered if there is 1 or more registered events with no case to handle them in this event structure. There is a huge discussion if this is a bug or not (
Lava link). But, as you can see in the template, Justin registers an entire cluster of user events all at once independently of them having a case to handle them in the event structure. This makes very practical and more maintainable code, but at the cost of having huge headache if you need the timeout case in the event structure. Hopefully NI will come up with some solution for this in the next version of labview.
I am still trying to figure out how to use it. I am really very, very tired of using queues to make the JKIs state machines to intercommunicate. Please, if someone has an example of use for it, please share it.
thanks
Helcio
Jim Kring, on 13 August 2010 - 04:59 PM, said:
This post has been edited by hburd: 29 May 2011 - 03:29 PM