|
|
发表于 2009-8-6 15:00:05
|
显示全部楼层
本帖最后由 focuscon 于 2009-8-6 15:01 编辑 ' `1 I, E5 U! u) T$ }
( c7 |: ?3 Y G/ F8 K' M( N7 G来晚了,好问题啊!' H6 b; Y! |8 |2 J/ ]
谢谢林伟的经验分享,很好的技巧。在手册 P254 Tips and Techniques一章里面有介绍这个问题。
2 P8 k6 m4 @- X+ U j( M8 d6 B技术支持论坛里面有个这样的帖子,“出现同时事件(时间死结) Extendsim如何处理”) L2 ^, D% }0 J& v. A
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:
& `$ `% t' i" n2 z& b
# b. e# Z/ n) x0 oGo to Run > Simulation Setup > Continuous tab.
z8 ?$ R6 c! d9 e7 G
9 M9 g0 w1 c# v* STurn on Show Simulation Order from the Model menu.
" u+ U1 z8 A/ r2 ]" t1 j0 N1 o" K2 R" r: d
Select an event scheduling block and choose Set Simulation Order from the Model menu.8 d5 g$ b4 _: q6 L$ k/ U: e8 Z
8 F* V' Z, i6 `, N% r) ]7 ~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.
* o7 d# [' X, s7 }: a6 @/ v. l1 a' Q我试了一下按照这个办法调整仿真顺序没办法解决这个问题,是不是这个模型本身就存在逻辑错误,林伟的方法正好可以屏蔽掉那个错误?$ Z! G8 b: [. H( x
Queue, Resource Pool 是在释放小球时再占用资源,Gate放在了Queue和Activity之间,资源低于安全值时发生了冲突?有点不太明白。 |
|