|
|
发表于 2009-8-6 15:00:05
|
显示全部楼层
本帖最后由 focuscon 于 2009-8-6 15:01 编辑 # `/ g# ?+ f' ]; ]" B
2 N( L8 O2 D7 T2 |6 c) k7 y* W
来晚了,好问题啊!" j. x6 D9 W6 ?$ ~( R) v
谢谢林伟的经验分享,很好的技巧。在手册 P254 Tips and Techniques一章里面有介绍这个问题。
/ k' C! A* u* m技术支持论坛里面有个这样的帖子,“出现同时事件(时间死结) Extendsim如何处理”
3 B4 e- x! u: o; t9 hExtendSim 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:
7 B. |- h! y% j+ g9 q. k- x2 B9 P
Go to Run > Simulation Setup > Continuous tab.
* s: b' R' Q/ C& ^& l; i' d( O, L1 Q
o9 d, _( R' D/ n4 KTurn on Show Simulation Order from the Model menu.
3 h. @' E; P* w* z2 g0 r: K
! K" D L5 h8 I) L. RSelect an event scheduling block and choose Set Simulation Order from the Model menu., B6 t8 |. v4 H4 j+ ^5 Y* k
z" Y" g, i6 k5 J8 T
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.- k2 z4 p$ J# j1 H, c" a
我试了一下按照这个办法调整仿真顺序没办法解决这个问题,是不是这个模型本身就存在逻辑错误,林伟的方法正好可以屏蔽掉那个错误?
) c( X) Y9 r3 W' ?$ SQueue, Resource Pool 是在释放小球时再占用资源,Gate放在了Queue和Activity之间,资源低于安全值时发生了冲突?有点不太明白。 |
|