设为首页收藏本站

最大的系统仿真与系统优化公益交流社区

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 5828|回复: 0

[原创] 生产系统仿真教程中的问题

[复制链接]
发表于 2016-6-14 16:17:06 | 显示全部楼层 |阅读模式
使用Plant Simultation 9运行周老师的生产系统仿真教程第一章的P5的程序时,总是报错(勘误之后的),显示。# o/ B, A: W  c* d. O  h
is
8 u/ M; A$ ~, G2 o& w6 l! \        m,n:integer; --zhengshu bianliang
$ E5 T$ r' x( u! e. O$ {0 `+ I        Name:string; --zifuchuan bianliang
" d$ }9 R( L% ?7 j        obj:Object;  --dui xiang lei xing bianliang' a- m% Y) ^8 t3 T! [. q
do
: X* D. W5 t7 A9 c& |        m:=str_to_num(omit(?.Name,1,5));
$ S6 X1 P1 e4 c        Name:=sprint("Output_Line",m); --sheng chan xian mingcheng
0 P+ F  C* @  m        Obj:=str_to_obj(Name);
5 Q9 ~: S4 G, O/ \) R! B2 a        n:=?.StatNumIn; ' F2 ~% m+ F6 c& G( G# [" y
        Obj.val:=n;, l2 o3 x' V+ e1 n2 i; T
        if m>1 then7 E$ }; D+ _0 _' e
                Name:=sprint("OutRate_Line",m);
, S  p5 _8 q3 V2 m: H0 T% ~& a- s' f' a                Obj:=str_to_obj(Name);
5 \, G$ J( M! X+ h3 Q             Obj.val:=n*100/Output_Line1;
, x" x+ |4 e' \# |- ^+ A        end;
# h) {) F5 v" cend;
+ V: y1 Q' y+ J9 L' x* a" [4 k行 6 中的方法 '.DOE_sim.SingleLine.CalOutPut' 出错:'VOID' 无法接受方法 'Name'。是怎么回事啊?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|手机版|SimulWay 道于仿真   

GMT+8, 2026-5-17 13:32 , Processed in 0.019666 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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