Message 1 of 45
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
[ FlexSim 20.0.10 ]
I want to know how to use pf to control the time of collision, so that I can collect data
Solved! Go to Solution.
[ FlexSim 20.0.10 ]
I want to know how to use pf to control the time of collision, so that I can collect data
Solved! Go to Solution.
Hi @mark zhen ,
We haven't heard back from you. Were you able to solve your problem? If so, please add and accept an answer to let others know the solution. Or please respond to the previous comment so that we can continue to help you.
If we don't hear back in the next 3 business days, we'll assume you were able to solve your problem and we'll close this case in our tracker. You can always comment back at any time to reopen your question, or you can contact your local FlexSim distributor for phone or email help.
我現在有了一個新的想法,我需要考慮到第三輛車的碰撞,然後我的DELAY時間會根據碰撞的車輛數量來確定,比如兩輛車是5S,三輛車是10S。我寫了全球表!0421 (1).fsm
@Jason Lightfoot The purpose of this model is just to understand more detailed collision problems. I believe that after dealing with 3 collisions, the others should be similar logic
謝謝你的幫助,但可以有辦法幫助我去了解全面的邏輯嗎?我想知道我該在哪裡看到位置label方面的意義
"Thanks for your help, but can there be a way to help me understand the full logic? I would like to know where do I see the meaning of the position label"
The best advice to learn how it works is to step through the logic/process and see what the token labels are, what's on the list and what the code does (adding breakpoints and stepping through the logic when looking at local variables).
The idea is that during a collision event you
那有關於碰撞id的設定可以解釋一次嗎?
以上面的圖來說明我的理解是檢測其他物件是否有 碰撞,沒有的話往沒有的方向走(可能要你解釋一下這兩個的作用)
那是的方向
可以解釋一下這個的作用
還有想問這個是不同的不同數量的不同的時間嗎?
還有拉當前這個的作用是什麼以及為何需要啦?
這最後是什麼功能啊?
The global collisionID gets incremented when there is a new collision - that is, when two object collide and neither have a collisionID.
There are 3 cases for an AGV that so far has not joined the collision delay:
Theses cases are detected in the process flow.
Yes the collisions.length tells you how many were in the collision and the case statement tells you the time.
We remove the collisionID label at the end of the delay so a new collision can be detected.
我想全部確認一下我是否有誤會
當碰撞觸發的時候需要給予token兩個標籤(incollsion,othercollisoin這兩個名字)而他們值的代碼(我想問“incollision”是哪裡來的)
第一個decide是判斷是否有token.inCollision對吧?(甚麼樣的情況會產生這個token?)
有這個token就會結束zone
沒有的話則會到第二個decide
第二個decide 是判斷是否有token.inCollisionid?(這個值是哪裡來的??)
第三個判斷是token.otherAGV.as(Object).collisionID?!=nullvar是其他物件發生碰撞的時候是否有id嗎?
沒有的話使用這兩個流程嗎?(那這兩個流程的意義是甚麼?)
然後根據我的觀察token會卡在pull裡不會消失
The token is generated on the collision check frequency. The first time it detects a collision, the 'incollision' variable is 0. Subsequent times tokens are created for that object while it is colliding, the incollision is 1. Hence if you detect it is 0 then it is firing for the first time and you can ignore the other tokens that are generated according to the collision check frequency.
Attached is a version that fixes the hanging token.
我不了解為啥我的會有抱錯
What are all these ? Why do you insist on putting them in a general flow?