LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Statechart Module: What is the order of execution for a parent state and its substates?

Hello,

 

This page describes the order of execution of transitions and actions for one level of nesting. What about compound states? Do the static reactions of the parent state execute before the transitions of the sub-states?

Certified LabVIEW Developer
0 Kudos
Message 1 of 3
(2,361 Views)

Hello, 

 

I'm not incredibly familiar with the Statechart module, but I will look into it for you on our internal database. In the mean time, there are some examples that may answer some of your questions here:

 

https://forums.ni.com/t5/Example-Code/NI-SoftMotion-2009-LabVIEW-State-Chart-Example/ta-p/3520042

 

and here:

 

https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000000x3UMCAY&l=en-US

 

-N

National Instruments
Staff Certification Engineer
0 Kudos
Message 2 of 3
(2,336 Views)

Hello Nathanael,

 

Thank you for your help.

 

I wrote a little test statechart to make the different transitions and reactions print debug messages to a single console (string indicator). The parent's static reaction does execute before the transitions of the sub-states are evaluated.

Certified LabVIEW Developer
0 Kudos
Message 3 of 3
(2,315 Views)