question

Kais K avatar image
0 Likes"
Kais K asked Jeanette F commented

How to create a token on each count change ?

Hello everyone,

I have a resource in my process flow alternating between 0 and 1. this alternation is controlled using buttons in a GUI (when I press the button 'F_F' it sends 1 to my resource and when I press the button 'F_M' it sends 0 to my resource).

My question is how can I create a token on each change of the 'count' variable in my reference function.

I tried using the event triggered source, but I couldn't properly link it to the resource.

capture3.jpg

capture1.jpg

capture2.jpg

FlexSim 19.0.0
proces flowresourceevent trigger
capture3.jpg (44.9 KiB)
capture1.jpg (20.0 KiB)
capture2.jpg (53.0 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.

Jeanette F avatar image Jeanette F ♦♦ commented ·

Hi @Kais K, was Felix Möhlmann's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.

0 Likes 0 ·

1 Answer

·
Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered

If the value are only changed by the GUI you could simply also send a message to the process flow and react to that with an even triggered souce.

messageSource.fsm


messagesource.fsm (19.2 KiB)
5 |100000

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

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.