question

立洲 avatar image
0 Likes"
立洲 asked Kavika F commented

About the Kiva System Model Example

@anthony.johnson Can you help me solve the problem?

想知道OnCalculatePath 2020版本是否可以有其他方式替換Event Triggered Source的觸發條件

《想知道OnCalculatePath 2020版是否可以有其他方式來代替Event Triggered Source的觸發條件》

是否可以使用自定義代碼來編寫,或者沒有可以相同目的的其他方法,達到我想要的解決方案

“是否可以使用自定義代碼編寫它,或者是否有任何其他方式可以達到相同目的,以實現我想要的解決方案”


"Want to know if OnCalculatePath 2020 version can have other ways to replace the trigger condition of Event Triggered Source "Want to know if OnCalculatePath 2020 version can have other ways to replace the trigger condition of Event Triggered Source" Whether it can be written with custom code, or can it be the same Other ways to achieve the solution I want "Is it possible to write it with custom code or is there any other way to achieve the same purpose, to achieve the solution I want""


https://answers.flexsim.com/articles/107103/example-kiva-system-model.html

1653019940476.png

kivasystem.fsm


FlexSim 20.0.10
astarcustom codetrriger
1653019940476.png (23.4 KiB)
kivasystem.fsm (205.6 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.

Kavika F avatar image Kavika F ♦ commented ·

Hi @立洲 , was Joerg Vogel'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

Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered David Seo commented

Here is my guess: On Calculate Path is an event, that fires when a Taskexecuter starts or change his travel to a destination cell. In Version 20.0 you have only access to events directly of a Taskexecuter. OnReceiveTasksequence, On Start Task and some more. Since you have not access to more events of an AStar Grid you correlate any change of an older travelpath to another newer travelpath of a Traveler to imitate On Calculate Path event. You can do this on intervals of allocating and deallocating of grid cells or just time ticks.

· 4
5 |100000

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

Jason Lightfoot avatar image Jason Lightfoot ♦♦ commented ·
Jörg is right. But the reason the onCalculatePath is being used in the Kiva model in this way is to return the list of barriers that are in play depending on whether the robot is loaded or empty. The dynamic barriers are not in earlier versions so you should upgrade if you can.
1 Like 1 ·
立洲 avatar image 立洲 Jason Lightfoot ♦♦ commented ·

我可以使用自定義代碼來修改它的程序,以便在 2020 版本中使用該代碼嗎?

0 Likes 0 ·
Jason Lightfoot avatar image Jason Lightfoot ♦♦ 立洲 commented ·

The short answer is 'probably not'.

0 Likes 0 ·
Show more comments