|
|
发表于 2009-8-6 15:00:05
|
显示全部楼层
本帖最后由 focuscon 于 2009-8-6 15:01 编辑 . z4 J. C2 p4 V: j
' l+ Z- y! |; l2 p8 U/ X g; M4 B
来晚了,好问题啊!
; f& b8 {: I6 x谢谢林伟的经验分享,很好的技巧。在手册 P254 Tips and Techniques一章里面有介绍这个问题。
" b3 @3 l, t) |* F技术支持论坛里面有个这样的帖子,“出现同时事件(时间死结) Extendsim如何处理”
4 k5 X- a+ s0 T4 s3 q8 aExtendSim puts the blocks on the event calendar in simulation order. Blocks with a lower simulation order will receive their event message first. You can change the simulation order with the following steps:
2 C* m# [1 A" h5 q% c5 c" {) G' m$ t+ _8 n, n
Go to Run > Simulation Setup > Continuous tab.: b1 ]. O7 t8 w9 D2 i+ v3 m/ q
" K& @0 g3 P2 P2 F- q U" U# [Turn on Show Simulation Order from the Model menu.! Z' z$ u3 K5 d. H! F0 `: y& o" c
0 E- q; t5 |4 k+ H" V, K# D0 |8 MSelect an event scheduling block and choose Set Simulation Order from the Model menu.
4 p* j9 }3 j: n L0 Z! @$ t2 y
9 Q8 x# D2 @5 E* j! B& v/ ]/ xNote that the simulation order will only make a difference if two or more events occur at exactly the same time. If the events are not exactly at the same time, the events will occur in chronological order.- q$ F- A3 x% O% {1 |1 {1 `5 n
我试了一下按照这个办法调整仿真顺序没办法解决这个问题,是不是这个模型本身就存在逻辑错误,林伟的方法正好可以屏蔽掉那个错误?! ~$ _. q" h0 n+ I" O" _! M
Queue, Resource Pool 是在释放小球时再占用资源,Gate放在了Queue和Activity之间,资源低于安全值时发生了冲突?有点不太明白。 |
|