Transition question

Discuss issues and ideas you have to configuring displays with PowerVision
drphil69
Posts: 139
Joined: Wed Mar 02, 2011 5:59 pm

Transition question

Post by drphil69 » Tue Sep 15, 2015 11:57 am

Hello,

If a conditional transition is executed in one state machine, and the exact transition is used in another state machine, will it also execute there?

I have attached an image of the 2 state machines for reference. I am using "DrumOn" and "DrumOff" from the first state machine to control the transitions in the second.

If there's a better way to do this please let me know.

Thanks,
Phil
1.jpg
1.jpg (93.28 KiB) Viewed 78 times
stalley
Enovation Controls Development
Enovation Controls Development
Posts: 618
Joined: Tue Mar 18, 2014 12:57 pm

Re: Transition question

Post by stalley » Tue Sep 15, 2015 3:17 pm

Hello Phil,

As you have found, events are seen globally, just as database variables are global.

Is it possible to combine the two state machines?

What conditions require two different state machines, perhaps you need four events instead of the two.
Sara Talley
Software Engineer
Enovation Controls
drphil69
Posts: 139
Joined: Wed Mar 02, 2011 5:59 pm

Re: Transition question

Post by drphil69 » Wed Sep 16, 2015 11:34 am

Hi Sara,

I'm not sure what you mean... will this work or not?

Thanks,
Phil
stalley
Enovation Controls Development
Enovation Controls Development
Posts: 618
Joined: Tue Mar 18, 2014 12:57 pm

Re: Transition question

Post by stalley » Wed Sep 16, 2015 11:46 am

Hello,

Yes, when the common event is fired, both state machines could transition.

I don't know that there is a better way to accomplish what you are doing, maybe others out there use something different.
Sara Talley
Software Engineer
Enovation Controls