|
发表于 2009-8-6 15:00:05
|
显示全部楼层
本帖最后由 focuscon 于 2009-8-6 15:01 编辑
; j/ ~1 R4 M# w" ?3 B- j
" D: P+ ]& @( K/ c来晚了,好问题啊!
6 |7 \' V/ {) |4 W谢谢林伟的经验分享,很好的技巧。在手册 P254 Tips and Techniques一章里面有介绍这个问题。
6 C# \' E9 @9 s' z% C% c& K技术支持论坛里面有个这样的帖子,“出现同时事件(时间死结) Extendsim如何处理”8 U3 S4 y) U+ \4 G: r. n1 v" \3 V, d" _
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:* D$ Q+ L* k, h1 e9 J$ f9 f8 N
- p0 I( f0 ^- e2 |2 K3 z/ {Go to Run > Simulation Setup > Continuous tab.- i3 }0 B$ M) f5 Z- T) O5 j
7 W! i$ N9 ]6 ?5 g3 D3 M
Turn on Show Simulation Order from the Model menu.
! M7 Y- Q. B: g5 n7 P
/ Y/ R# ]$ k/ \! n0 KSelect an event scheduling block and choose Set Simulation Order from the Model menu.4 N# c( \ m+ k" k; P# n! _1 s! J
% \. y0 Z6 t+ y, b9 N4 Z& a7 F, }
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.' }* ]; B+ V' C8 W8 `' R
我试了一下按照这个办法调整仿真顺序没办法解决这个问题,是不是这个模型本身就存在逻辑错误,林伟的方法正好可以屏蔽掉那个错误?
- B+ Z+ E3 f7 Z" A, P6 eQueue, Resource Pool 是在释放小球时再占用资源,Gate放在了Queue和Activity之间,资源低于安全值时发生了冲突?有点不太明白。 |
|