|
|
发表于 2009-8-6 15:00:05
|
显示全部楼层
本帖最后由 focuscon 于 2009-8-6 15:01 编辑
; k [: b" u& C& z5 I3 k
- t0 v B2 H: L; q来晚了,好问题啊!$ Z6 g- C+ M: [+ m4 t$ ?
谢谢林伟的经验分享,很好的技巧。在手册 P254 Tips and Techniques一章里面有介绍这个问题。3 `- j, d) ~" ]( A$ w9 {$ L7 D
技术支持论坛里面有个这样的帖子,“出现同时事件(时间死结) Extendsim如何处理”
, s9 n9 F6 `# G/ [8 W+ RExtendSim 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:. U& R! \: D; ? Z( c1 G% M, ^
, f4 `/ `. f# J# b7 P/ f: h
Go to Run > Simulation Setup > Continuous tab.
! Y$ S6 T' d. d7 U) v
+ b7 e9 ?% Q3 ]" F& Z. X; \! z2 qTurn on Show Simulation Order from the Model menu.
- W, z8 ^# m( @/ k9 @) Z
6 V" I/ ]! w2 ^4 w! `Select an event scheduling block and choose Set Simulation Order from the Model menu.
) q3 F! |$ I9 b8 H$ d& b$ ]& ~2 j2 i% I* K
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.
& @0 Y. y' Y2 i: {9 e我试了一下按照这个办法调整仿真顺序没办法解决这个问题,是不是这个模型本身就存在逻辑错误,林伟的方法正好可以屏蔽掉那个错误?
/ [! I% k+ l6 c/ w& n9 R! }1 m3 bQueue, Resource Pool 是在释放小球时再占用资源,Gate放在了Queue和Activity之间,资源低于安全值时发生了冲突?有点不太明白。 |
|