question

Idoia A avatar image
0 Likes"
Idoia A asked Jeff Nordgren answered

Wait for Event as Decide activity

Hello,

I have a simple process flow in which 60 tokens are created in a schedule source. These tokens are divided into three groups. They are then pulled, and every time they are pulled the value of a variable is updated with the number of the group. After this is done, they are pulled again, incrementing a label every time until the number of the group is changed. The idea is that every time the variable value changes, the incremented label value is set to 0 and starts counting again every time a token is pulled.

My question is if it is possible to use a wait for event activity that would listen to the variable, and then would decide if the label needs to be set to 0 or it needs to be incremented. I have tried using the use max timer option but it is not working. I attach model, I would appreciate any suggestions.

Thank you in advance,

Idoia

waitforevent-decide.fsm

FlexSim 19.0.2
wait for eventdecide
5 |100000

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

1 Answer

Jeff Nordgren avatar image
0 Likes"
Jeff Nordgren answered

@Idoia A,

Attached is your model with the changes that I've made. I'm not exactly clear on what you are trying to accomplish but take a look at the attached model and see if it now does what you are wanting.

I created two PF variables (GroupID & GroupCount) that show the current values (see below).

Is this what you were looking for? If not, please explain a little more what exactly is needed.

Thanks.

waitforevent-decide-jn.fsm


5 |100000

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