Match value

Match value

zhun_z
Not applicable
129 Views
3 Replies
Message 1 of 4

Match value

zhun_z
Not applicable

[ FlexSim 21.2.4 ]

Match Value.fsmExcuse me, when i use the "match value" as the monitor condition, i can't get the right running result. Please help me to find the problem, thx!监听.gif

0 Likes
Accepted solutions (1)
130 Views
3 Replies
Replies (3)
Message 2 of 4

kuooge009
Contributor
Contributor

sorry.i dont kn what you said is that the running result is incorrect. Aren't all processors pushed to the list?

0 Likes
Message 3 of 4

moehlmann_fe
Advocate
Advocate
Accepted solution

"match value" compares the event parameter to a static value that is determined on model reset. It is not dynamically evaluated each time the event happens. I think what happens in your is that the value is evaluated for each instance in order and thus only the value of the last instance "sticks".

1642059541702.png

To create tokens in the correct instance I would suggest to simply always create a token and sort out the wrong ones in a subsequent decide activity.

1642059715500.png

match_value_fm.fsm

0 Likes
Message 4 of 4

zhun_z
Not applicable
Thanks, I have not known that the activity "match value " will be triggered on model reset, thank you for your explanation.
0 Likes