question

wang W2 avatar image
0 Likes"
wang W2 Suspended asked tannerp commented

pull from list model was stucked

SUPPORT.fsmI build a model use list functionality,every setup was right,but when I run the model,the 3D objectors part just stucked at the begining of running,but in processflow the token just loop repeatedly ,like screenshot below.

Attach is my model,hope it can help illustrate my problem.thank you very much

FlexSim 20.0.3
processflowlist
无标题.png (16.5 KiB)
support.fsm (47.7 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.

tannerp avatar image tannerp commented ·

Hi @wang W2, was Jörg Vogel's answer helpful? If so, please click the red "Accept" button on their answer. Otherwise, feel free to comment back with more information. Thanks!

0 Likes 0 ·

1 Answer

·
Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered tannerp commented

Just deactivate Use Max Wait Timer in Pull from List activity.

Edit alternative b:

  • activity Delay: value larger than 0.00! And
  • activity Pull from List: Option Insert at Front of token.pulled! And
  • activity Run Sub Flow: in Assign Labels to Children for myitem the value is:
    token.pulled.pop()
    or
    token.pulled.shift()
· 5
5 |100000

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

Joerg Vogel avatar image Joerg Vogel commented ·

And then wait a bit longer like about 850 time units.

0 Likes 0 ·
wang W2 avatar image wang W2 Joerg Vogel commented ·

thank you ,But I just wonder what the reason that my model just stucked?Everything seemed to be setup correctly,

could you tell me the reason please?thank you

0 Likes 0 ·
Joerg Vogel avatar image Joerg Vogel wang W2 commented ·

Use Max Wait Timer option was set to 0. Then you will see that there is an infinite loop of your run time at 0.00 time units. You pull at 0 time units, then you wait 0 time units with in interrupt after 0 time units to release the token through port 2 then a delay activity let the token wait for 0 time units to pull again. There is no event progress in your process everythings happens at a run time of 0. And this in an infinite loop!

0 Likes 0 ·
Show more comments

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.