question

Wang Z2 avatar image
0 Likes"
Wang Z2 asked Wang Z2 commented

how to set "wait for event "

In my model I want stop the model when all people's label "State" changed to 1

I use the control "wait for event" in process flow to listen the "OnLabelValueChange",use a group to represent all people .but it didn't work .

I don't know how to set the control"wait for event",Can you help me? Thanks

This is my modelprocess-flow.fsm

FlexSim 18.2.2
process flowwait for event
process-flow.fsm (47.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.

jing.c avatar image
1 Like"
jing.c answered Wang Z2 commented

hi @Wang Z2

I'm not quite understand how "OnLabelValueChange" mechanism works in PF.

So I prefer to use user event to achieve your requirement. I attach a sample model, and hope it helps~

status-label-all-1bychjv182.fsm


· 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.

Wang Z2 avatar image Wang Z2 commented ·

thanks

0 Likes 0 ·
Raja Sekaran avatar image
3 Likes"
Raja Sekaran answered Wang Z2 commented

@Wang Z2

I have modified the process flow logic and attached the model here.

waitforevent-support.fsm

Hope this works for you.

Thanks


· 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.

Wang Z2 avatar image Wang Z2 commented ·

Thanks

0 Likes 0 ·