|
|
发表于 2009-8-6 15:00:05
|
显示全部楼层
本帖最后由 focuscon 于 2009-8-6 15:01 编辑
" S* Q/ S3 b# O& d4 `8 }1 e$ y5 E3 R. _* I! [( O- L3 Z8 x" g% U4 i0 a
来晚了,好问题啊!
+ f$ Q/ M6 X) Y" x/ f& }# K, s谢谢林伟的经验分享,很好的技巧。在手册 P254 Tips and Techniques一章里面有介绍这个问题。
0 D1 t- M9 p0 h# }1 D' P/ o+ r技术支持论坛里面有个这样的帖子,“出现同时事件(时间死结) Extendsim如何处理”, i" ^! X0 @5 S5 n
ExtendSim 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:
3 v$ s3 n# q$ o r
. Z* i) D0 [. X$ n# _Go to Run > Simulation Setup > Continuous tab.
% |6 K) r4 ?5 A( {
J. x3 F/ A! l w1 C) jTurn on Show Simulation Order from the Model menu.
3 g- G8 b, ]2 T7 J s- {
2 n/ q( ^2 C; h O& r2 m( LSelect an event scheduling block and choose Set Simulation Order from the Model menu.
P. f6 N! ~$ G( }
( Q" F- D6 J. u2 }9 d+ X/ C3 eNote 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.
' |% w2 c, r, ~; O% @我试了一下按照这个办法调整仿真顺序没办法解决这个问题,是不是这个模型本身就存在逻辑错误,林伟的方法正好可以屏蔽掉那个错误?
0 y6 n$ g$ p6 w8 _0 T, jQueue, Resource Pool 是在释放小球时再占用资源,Gate放在了Queue和Activity之间,资源低于安全值时发生了冲突?有点不太明白。 |
|