Firstly, this is just an extension of Jack Hamiltons ideas on the State Machine Architecture, so credit where credit is due. 
I have taken the queued message handler from the NI examples and added a variant to the queue.  This enables you to pass data directly to a state, this saves memory if this data only has a short lifetime.   It also alows the introduction of a general error handling frame.   I have also added the event structure with a 50ms timeout as a frame in the main application.  Best thing is to look at the example.. 
Has anyone employed this architecture before, if so how did it pan-out?  Otherwise it would be good to hear your views on this idea.  Must stress, I haven't used this in anger yet; i am posting it here for comments. 
Thanks, Tom. 
[EDIT:  Just spotted some mistakes in the first version i posted here, have updated the file.] 
Download File:post-12-1076669963.llb