|
|
发表于 2009-8-6 15:00:05
|
显示全部楼层
本帖最后由 focuscon 于 2009-8-6 15:01 编辑
; i7 o. G4 E/ k( q! g3 r! t+ x- c4 l1 G, V ~4 \4 D/ k
来晚了,好问题啊!& ?- i$ ?' V- |
谢谢林伟的经验分享,很好的技巧。在手册 P254 Tips and Techniques一章里面有介绍这个问题。
% k4 L" x2 |$ W3 E6 w: t h技术支持论坛里面有个这样的帖子,“出现同时事件(时间死结) Extendsim如何处理”4 t' I4 T& P" g$ G1 J0 f1 i
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:. Q9 {, v i) v% T5 e! T* Z
t! C$ s7 _ h( QGo to Run > Simulation Setup > Continuous tab.
/ k5 N6 ]2 U0 |% N
/ f2 o$ U+ \% }8 I, STurn on Show Simulation Order from the Model menu.
$ w. |8 I# |! t! ~: ]2 o n
7 }& w! T* v% B) {2 ]Select an event scheduling block and choose Set Simulation Order from the Model menu.
: G0 M8 C/ N! G+ x, u9 W$ ]: e7 d# c; B6 M- U$ T; B
Note 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.
5 x4 J& n4 W) f1 h6 s8 [我试了一下按照这个办法调整仿真顺序没办法解决这个问题,是不是这个模型本身就存在逻辑错误,林伟的方法正好可以屏蔽掉那个错误?
! q3 \# z! W8 ]6 u3 d1 ZQueue, Resource Pool 是在释放小球时再占用资源,Gate放在了Queue和Activity之间,资源低于安全值时发生了冲突?有点不太明白。 |
|