|
发表于 2009-8-6 15:00:05
|
显示全部楼层
本帖最后由 focuscon 于 2009-8-6 15:01 编辑
; ]0 d- b7 I, t4 D% e4 Z) F7 I; y. Y. [
来晚了,好问题啊!9 e" f6 p2 _8 F
谢谢林伟的经验分享,很好的技巧。在手册 P254 Tips and Techniques一章里面有介绍这个问题。
2 ]4 G4 l, w) `- W技术支持论坛里面有个这样的帖子,“出现同时事件(时间死结) Extendsim如何处理”4 U7 j1 p% X. C, M6 Y* M8 U( t
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 X) b: N* Y$ G7 ]5 Q( o
3 ~9 x& M* K/ V" U1 i7 v+ J$ n
Go to Run > Simulation Setup > Continuous tab.5 V2 V0 Q7 a' V2 |5 t% Z
6 N2 ~+ O$ N$ t5 F( W7 ^* h
Turn on Show Simulation Order from the Model menu.
; q7 l+ ?, r7 J/ ?$ x0 C, r8 a' J& u+ t+ J1 h
Select an event scheduling block and choose Set Simulation Order from the Model menu.
) U+ _* X5 z' ~8 U9 h
; J( I) Q* E) U+ r7 bNote 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.
- s/ _, X- G" X, q* W$ d5 E我试了一下按照这个办法调整仿真顺序没办法解决这个问题,是不是这个模型本身就存在逻辑错误,林伟的方法正好可以屏蔽掉那个错误?0 \, N/ d5 v) b8 o: b- d/ x
Queue, Resource Pool 是在释放小球时再占用资源,Gate放在了Queue和Activity之间,资源低于安全值时发生了冲突?有点不太明白。 |
|