全球FlexSim系统仿真中文论坛

搜索
查看: 4035|回复: 8

运行时而报错

[复制链接]
LIUQIAN 发表于 2018-11-22 17:05:50 | 显示全部楼层 |阅读模式
模型运行时,有时会报如下错误,重置后又可以运行成功。请老师帮助解答,模型如下


本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
慧娴亚伦 发表于 2018-11-22 17:30:43 | 显示全部楼层
不要用sendmessage,改用senddelaymessage,延迟时间设置为0
 楼主| LIUQIAN 发表于 2018-11-22 17:45:06 | 显示全部楼层
慧娴亚伦 发表于 2018-11-22 17:30
不要用sendmessage,改用senddelaymessage,延迟时间设置为0

老师,改为senddelaymessage之后再运行,又会有如下错误。这个是什么原因呢file:///C:/Users/77476/Desktop/%E6%8A%A5%E9%94%992.png
 楼主| LIUQIAN 发表于 2018-11-22 17:45:28 | 显示全部楼层
LIUQIAN 发表于 2018-11-22 17:45
老师,改为senddelaymessage之后再运行,又会有如下错误。这个是什么原因呢

time: 6.000000 exception: Exception caught in Executive::tick(). Throwing.
time: 6.000000 exception: int runthemessageloop() #4
exception: core->theexecutive.tick();
time: 6.000000 exception: int runthemessageloop() #6
time: 6.000000 exception: Exception caught in TreeNode::receivemessage()
time: 6.000000 exception: Exception caught in Executive::processeventinlist(). Throwing.
time: 6.000000 exception: Exception caught in Executive::steptotime(). Throwing.
time: 6.000000 exception: Exception caught in Executive::tick(). Throwing.
time: 6.000000 exception: int runthemessageloop() #4
exception: core->theexecutive.tick();
time: 6.000000 exception: int runthemessageloop() #6
慧娴亚伦 发表于 2018-11-23 15:46:20 | 显示全部楼层
改完也要把模型附上呀。
 楼主| LIUQIAN 发表于 2018-11-23 16:28:01 | 显示全部楼层
慧娴亚伦 发表于 2018-11-23 15:46
改完也要把模型附上呀。

我就按照您得指导,把合成器进入触发得sendmessage改为了senddelayedmessage,模型如下。老师能不能讲一下这是什么原因,这个问题重置一下就没问题了,但是在实验器统计结果得时候会有影响。

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
慧娴亚伦 发表于 2018-11-25 10:37:14 | 显示全部楼层
别用全局变量来引用那些rack。
rack会在运行过程中被装载,然后在重置触发里面再释放,所以在rack被装载之后重置模型的第一次运行会导致全局变量的引用错误。再重置之后,由于rack没有再被装载,因此又可以正常运行。
 楼主| LIUQIAN 发表于 2018-11-26 15:59:40 | 显示全部楼层
慧娴亚伦 发表于 2018-11-25 10:37
别用全局变量来引用那些rack。
rack会在运行过程中被装载,然后在重置触发里面再释放,所以在rack被装载之 ...

谢谢老师解答
wangZ2521 发表于 2018-11-28 15:04:27 | 显示全部楼层
谢谢老师耐心解答
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|小黑屋|手机版|Archiver|全球FlexSim系统仿真中文论坛 ( 京ICP备14043114号-2 )

GMT+8, 2024-3-29 09:22 , Processed in 0.086548 second(s), 15 queries .

Powered by Discuz! X3.3© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表