|
|
发表于 2009-8-6 15:00:05
|
显示全部楼层
本帖最后由 focuscon 于 2009-8-6 15:01 编辑
9 O9 {2 Y! r4 K+ v" M% J! a1 a
0 q/ u0 x) C5 z. U来晚了,好问题啊!( ?# Z5 ~ u) R+ l, h1 @3 A
谢谢林伟的经验分享,很好的技巧。在手册 P254 Tips and Techniques一章里面有介绍这个问题。3 |4 U* \* W O6 ]) S; i$ F, _9 T# J- k
技术支持论坛里面有个这样的帖子,“出现同时事件(时间死结) Extendsim如何处理”
/ y* e0 D2 ]6 pExtendSim 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:
" k+ L* z$ Z) W e3 i& t
& x1 ?6 p5 Z" `* b* e+ C" d6 Z4 m: cGo to Run > Simulation Setup > Continuous tab./ z! I4 z1 M; j) w# }( |6 f# E
5 x5 P7 ~8 I# {, t) S5 HTurn on Show Simulation Order from the Model menu.
5 i7 z' G+ r: Y0 s$ R9 O( s" R0 h6 Z
3 E" _) U* a7 O: V) USelect an event scheduling block and choose Set Simulation Order from the Model menu.
z5 H ?" n# J' D6 h% U) N9 R0 w7 i- k3 y
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.
. `, _" `6 X; C3 N0 A4 O我试了一下按照这个办法调整仿真顺序没办法解决这个问题,是不是这个模型本身就存在逻辑错误,林伟的方法正好可以屏蔽掉那个错误?
$ B. x8 I' o& `1 qQueue, Resource Pool 是在释放小球时再占用资源,Gate放在了Queue和Activity之间,资源低于安全值时发生了冲突?有点不太明白。 |
|