|
发表于 2009-8-6 15:00:05
|
显示全部楼层
本帖最后由 focuscon 于 2009-8-6 15:01 编辑
+ k0 I3 H( a2 G' k( C( C2 M7 B1 q+ V6 @
来晚了,好问题啊!6 o/ A4 g; K; v! d1 N( C F" I2 R
谢谢林伟的经验分享,很好的技巧。在手册 P254 Tips and Techniques一章里面有介绍这个问题。
* A Y* D- G4 I, |1 @: E% w- Q技术支持论坛里面有个这样的帖子,“出现同时事件(时间死结) Extendsim如何处理”
U. n; ~3 K" l' o* s" QExtendSim 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:
% ^$ O1 V& w1 B) F& \; X
- }% @# y% Y* U$ I& ]' qGo to Run > Simulation Setup > Continuous tab.2 Z( i" {* H9 e; t/ ~5 X% }0 t. I
% w1 R$ `, b: h: t; V, Z* |Turn on Show Simulation Order from the Model menu.
( k$ {3 w+ S. k! w. n+ {- k p+ V( j: j X9 e+ t4 t: c
Select an event scheduling block and choose Set Simulation Order from the Model menu.3 K# t) Z C8 d3 i# y, F9 z9 L
; z: J! i8 N9 z; ^
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.
: Q& T7 G8 ~) `5 f% I4 }6 p我试了一下按照这个办法调整仿真顺序没办法解决这个问题,是不是这个模型本身就存在逻辑错误,林伟的方法正好可以屏蔽掉那个错误?5 W4 P C; C* W) p; T* n/ U% ]1 C
Queue, Resource Pool 是在释放小球时再占用资源,Gate放在了Queue和Activity之间,资源低于安全值时发生了冲突?有点不太明白。 |
|