11-19-2008 04:09 PM
After studying the article describing the code generation for Statechart Module logic, it appears to me that static reactions within a given state will execute in the order they are created -- which is the order in which they are listed 'Reactions' list pane.
If I have several static reactions in a given state, can anyone verify my suspicion or educate me as to how to know the order data flow within a state?
11-19-2008 04:20 PM
11-20-2008 07:55 AM
Thanks very much.
This prompts a needed feature in the Labview State configurator: the ability to change the order of static reactions. I understand that Entry and Exit actions must be at the top of the list, but there is no way I see to change the order of static reactions you create without deleting them and re-creating them in the order you need.
11-20-2008 10:33 AM
Jonathan Fazekas wrote:Thanks very much.
This prompts a needed feature in the Labview State configurator: the ability to change the order of static reactions. I understand that Entry and Exit actions must be at the top of the list, but there is no way I see to change the order of static reactions you create without deleting them and re-creating them in the order you need.
I agree this would be very nice to have. There is a viable workaround (deleting and recreating in the order you need), but that is kindof painful, so hopefully this functionality will be added in some future release.
11-20-2008 11:11 AM
To test this behavior I made a static reaction just now with six static reactions in which the order of execution is logged to disk. I noticed that when I compiled the statechart (whatever happened to compile as you program?) and re-opened the Configure State panel, the reactions are slightly reorganized such that the reaction I desired to run sixth is now running third in the list!!
I think there may be other factors influencing the order in the reaction list pane other than time of creation.
11-20-2008 11:16 AM
Jonathan Fazekas wrote:To test this behavior I made a static reaction just now with six static reactions in which the order of execution is logged to disk. I noticed that when I compiled the statechart (whatever happened to compile as you program?) and re-opened the Configure State panel, the reactions are slightly reorganized such that the reaction I desired to run sixth is now running third in the list!!
I think there may be other factors influencing the order in the reaction list pane other than time of creation.
Ouch. That's definitely not supposed to happen. Which version of LV are you using? I will try to reproduce it and create a CAR for this bug. Thanks for the info/help.
11-20-2008 11:18 AM
If you want to email me or create an SR I'd be happy to respond with some screenshots demonstrating this observation.
I'm using 8.6.
11-20-2008 11:24 AM
If you can give me the exact steps you did that gave the wrong behavior that would be great. I tried a little creating reactions and they seemed to stay in the order I created.
You could either respond here, or if you would prefer to email or create an SR, let me know and we can do that. Thanks.
11-20-2008 11:50 AM
Here is how to recreate:
I would expect the reaction list to show in this order, 1,4,5,2,3 but it really shows 1,2,3,4,5.
Looks like using the same name as a previously deleted reaction may be a part of the issue.
11-20-2008 11:55 AM