|
发表于 2009-8-6 15:00:05
|
显示全部楼层
本帖最后由 focuscon 于 2009-8-6 15:01 编辑
' P' N6 x k6 a8 i% z& t' G
) u8 H& m! o+ G9 G3 X来晚了,好问题啊!& R4 S* I6 g: {' p3 ^
谢谢林伟的经验分享,很好的技巧。在手册 P254 Tips and Techniques一章里面有介绍这个问题。
( r8 n0 B9 v8 X/ e1 v, f+ r技术支持论坛里面有个这样的帖子,“出现同时事件(时间死结) Extendsim如何处理”. y( n/ u) {4 |7 V6 e) @4 h
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:, u- a1 f8 |- l7 U
8 s9 F0 e R# X+ t4 p1 LGo to Run > Simulation Setup > Continuous tab.
& T: t; { L2 b
& [$ H3 ?; g+ o- [+ H! F) eTurn on Show Simulation Order from the Model menu.4 C/ r# S/ W8 k& {' z
% u& l) }7 h B, p
Select an event scheduling block and choose Set Simulation Order from the Model menu.. g u3 r" O1 z( x$ }9 s" A: T
" V3 J T! k) A& w
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.
- z, s' g4 j0 ]# c* D+ C: y1 v我试了一下按照这个办法调整仿真顺序没办法解决这个问题,是不是这个模型本身就存在逻辑错误,林伟的方法正好可以屏蔽掉那个错误?% r* {6 `# `! k4 r( o
Queue, Resource Pool 是在释放小球时再占用资源,Gate放在了Queue和Activity之间,资源低于安全值时发生了冲突?有点不太明白。 |
|