设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 5156|回复: 0

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

[复制链接]
发表于 2016-6-14 16:17:06 | 显示全部楼层 |阅读模式
使用Plant Simultation 9运行周老师的生产系统仿真教程第一章的P5的程序时,总是报错(勘误之后的),显示。6 c, K4 R* B3 Z: l$ u( v8 k
is
/ G' C: `3 v. C# ~$ w( r        m,n:integer; --zhengshu bianliang
! G0 u  z  m: B; [4 ~& x% @" R        Name:string; --zifuchuan bianliang
2 G# `5 v% T6 E% y        obj:Object;  --dui xiang lei xing bianliang
4 l; ^3 W7 t  Edo  r# m9 n! j4 \9 Y$ b
        m:=str_to_num(omit(?.Name,1,5));
2 J3 e) U) c+ L' d7 ]; u( w6 j        Name:=sprint("Output_Line",m); --sheng chan xian mingcheng+ b8 I* h/ w! A- k' B: N$ d6 O; f
        Obj:=str_to_obj(Name);7 e- K9 Q7 w2 O# Y2 `  S  R
        n:=?.StatNumIn;
& c6 J# }5 e% i" u- |  Z, q6 k* o- M, h        Obj.val:=n;* N7 l2 b3 U; x" c/ a) }
        if m>1 then& [+ }! F, `( D
                Name:=sprint("OutRate_Line",m);9 R6 I( j, O6 u. R& j
                Obj:=str_to_obj(Name);
' ~  z' G/ a* v7 n             Obj.val:=n*100/Output_Line1;
# L$ U0 q0 C5 n        end;/ `- z; w5 P$ O5 C6 D
end;8 @$ ]5 U) Y" S6 m
行 6 中的方法 '.DOE_sim.SingleLine.CalOutPut' 出错:'VOID' 无法接受方法 'Name'。是怎么回事啊?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2025-11-17 23:26 , Processed in 0.020556 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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