Mapping more than 1 event on change of variable

Discuss issues and ideas you have to configuring displays with PowerVision
ShrutiK
Posts: 34
Joined: Sun Feb 06, 2011 2:03 am

Mapping more than 1 event on change of variable

Post by ShrutiK » Mon Apr 11, 2011 5:44 am

Hi,

I've seen that the with one variable we are bound to select only one transition/event on "Fire on change" property of that variable.

What if I want to map more than 1 transition/event to "Fire on change" property of any variable?

PFA file for more details.I captured the snapshot of my concern.
Mapping more than 1 event on change of variable.doc
Snapshot of my concern
(33 KiB) Downloaded 16 times
Thanks & regards,
Shruti
ksaenz
Enovation Controls Development
Enovation Controls Development
Posts: 263
Joined: Thu Aug 19, 2010 7:53 am

Re: Mapping more than 1 event on change of variable

Post by ksaenz » Mon Apr 11, 2011 9:10 am

If you want to fire more than 1 event on change of a variable you can create a state machine with one state and a transition to itself. Put the events you want in the state machine and call the transition from the variable's fire on change.
ShrutiK
Posts: 34
Joined: Sun Feb 06, 2011 2:03 am

Re: Mapping more than 1 event on change of variable

Post by ShrutiK » Tue Apr 12, 2011 1:00 am

Thanks ksaenz!

However the solution you provided seems feasible for single state machine.
But what if one variable has to be mapped with the transition/event of different state machines?

Thanks and regards,
Shruti
ShrutiK
Posts: 34
Joined: Sun Feb 06, 2011 2:03 am

Re: Mapping more than 1 event on change of variable

Post by ShrutiK » Tue Apr 12, 2011 1:55 am

To be more precise, I've attached my problem snapshot.
Problem Snapshot.doc
(75 KiB) Downloaded 25 times
Thanks and regards,
Shruti
ksaenz
Enovation Controls Development
Enovation Controls Development
Posts: 263
Joined: Thu Aug 19, 2010 7:53 am

Re: Mapping more than 1 event on change of variable

Post by ksaenz » Tue Apr 12, 2011 8:45 am

The single-state machine would be separate. You would use "fire on change" to fire the transition in the single-state machine, and from the single state machine you fire the three events for your existing state machine every time.