question

Zhang Z3 avatar image
0 Likes"
Zhang Z3 asked Zhang Z3 commented

Why did the resume object go wrong

I use the process flow to achieve that all transporters passing a certain network node stay here for a period of time. But something went wrong,i did‘t know how to solve it.行李转盘2.fsm

FlexSim 19.2.4
why did the resume object go wrong
行李转盘2.fsm (57.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.

Zhang Z3 avatar image Zhang Z3 commented ·

@Jörg Vogel Thank you, but I still have a problem. What I want to achieve is that the transporter arriving at the certain network node stops, but my program will cause all three vehicles to stop. What should I do to stop transporter arriving at a network node ?行李转盘2.fsm

0 Likes 0 ·
行李转盘2.fsm (59.5 KiB)

1 Answer

Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered Zhang Z3 commented

It is a problem of code execition of the FlexSim Engine. You need only insert a Delay activity right behind the Event-Triggered Source. The delay time is set to zero. You find it often in tutorials called as "Breathe".

· 6
5 |100000

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

Zhang Z3 avatar image Zhang Z3 commented ·

@Jörg Vogel Thank you, but I still have a problem. What I want to achieve is that the transporter arriving at the certain network node stops, but my program will cause all three vehicles to stop. What should I do to stop transporter arriving at a network node ?行李转盘2.fsm

0 Likes 0 ·
行李转盘2.fsm (59.5 KiB)
Joerg Vogel avatar image Joerg Vogel Zhang Z3 commented ·

Actually this is a complete new question, isn't it? ;-) There are approaches you can use. First I suggest you assign the traveler to a label with a new name like resource at the token in the Event-Triggered Source. Then you need not duplicate the processes anymore.

You need a condition up on the process knows, which transporter stops. I would add a label at the transporter object called like shouldStop but any other name fits, too.

The process flow needs a Decision Activity to test the condition to delay or not. The condition reads the label at the transporter and compares it with the value that the condition becomes true or false. On true for example the delay occures, on false not.

0 Likes 0 ·
Zhang Z3 avatar image Zhang Z3 Joerg Vogel commented ·

Sorry, I still don’t understand, I want every transporter passing through this network node to stay for a while. Which vehicle passes which stop.I hope you understand what I said .please help me

0 Likes 0 ·
Show more comments