|
|
发表于 2009-8-6 15:00:05
|
显示全部楼层
本帖最后由 focuscon 于 2009-8-6 15:01 编辑 & c! l9 W' A4 c7 i1 E
5 x" @: u7 V" e- |
来晚了,好问题啊!
) P' q/ e( S! j& C& z* b- q$ E2 X谢谢林伟的经验分享,很好的技巧。在手册 P254 Tips and Techniques一章里面有介绍这个问题。
0 p) t3 U: `0 d# D0 F0 C: o/ F技术支持论坛里面有个这样的帖子,“出现同时事件(时间死结) Extendsim如何处理”3 z2 R0 E) m7 k F# d
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 U5 f& ~. d0 U
: o* J$ m; K4 \
Go to Run > Simulation Setup > Continuous tab.: I& B* V X7 p
8 `! W9 d2 E; K# O% F$ R8 G9 W
Turn on Show Simulation Order from the Model menu.2 H5 K( Z( N$ r
) N s& c. e7 P+ l
Select an event scheduling block and choose Set Simulation Order from the Model menu." t7 U' B4 \7 ]& Y1 R
, x) Z/ ^; h; h5 a) 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.
. c$ Z2 L# O, Z0 h1 A我试了一下按照这个办法调整仿真顺序没办法解决这个问题,是不是这个模型本身就存在逻辑错误,林伟的方法正好可以屏蔽掉那个错误?
2 P. a1 Z3 w' X, n) _/ V8 w2 tQueue, Resource Pool 是在释放小球时再占用资源,Gate放在了Queue和Activity之间,资源低于安全值时发生了冲突?有点不太明白。 |
|