question

Zhun Z avatar image
0 Likes"
Zhun Z asked Fang J commented

Match value

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

FlexSim 21.2.4
match value
监听.gif (86.2 KiB)
监听.gif (86.2 KiB)
match-value.fsm (38.8 KiB)
· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Fang J avatar image Fang J commented ·

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

0 Likes 0 ·

1 Answer

·
Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered Zhun Z commented

"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


1642059541702.png (21.1 KiB)
1642059715500.png (8.6 KiB)
match-value-fm.fsm (40.2 KiB)
· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Zhun Z avatar image Zhun Z commented ·
Thanks, I have not known that the activity "match value " will be triggered on model reset, thank you for your explanation.
0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.