设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 6215|回复: 0

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

[复制链接]
发表于 2016-6-14 16:17:06 | 显示全部楼层 |阅读模式
使用Plant Simultation 9运行周老师的生产系统仿真教程第一章的P5的程序时,总是报错(勘误之后的),显示。; }& {* d. R6 S( }) h* u$ w1 x% I
is! R7 W6 B6 D( Q# }0 l
        m,n:integer; --zhengshu bianliang' S. \* o- k/ N( F0 n- x
        Name:string; --zifuchuan bianliang, ?. j' w: Y: O6 C( {; \. {, x
        obj:Object;  --dui xiang lei xing bianliang
/ e! @: `0 F9 a) |! x! tdo# V( C# G* X* s2 {/ ?) r5 O
        m:=str_to_num(omit(?.Name,1,5));
: ?8 n- Q+ Z5 o        Name:=sprint("Output_Line",m); --sheng chan xian mingcheng
1 R6 U9 H4 L  ^" f, L) m  y        Obj:=str_to_obj(Name);, y/ z* {2 n$ }, o- X: j
        n:=?.StatNumIn; . }6 Y7 \- |% i
        Obj.val:=n;8 z; h4 o7 b" R
        if m>1 then/ f0 V" ]- J6 h/ X9 L
                Name:=sprint("OutRate_Line",m);
1 V: P# g. I7 D7 p                Obj:=str_to_obj(Name);- x: A( a8 m, Y- b2 k$ I
             Obj.val:=n*100/Output_Line1;
& h/ R7 U  {! e+ x0 T# q        end;5 ]* F9 ^. b; d* i
end;* H. m' _. Q" Y6 ]% w; D1 T; R
行 6 中的方法 '.DOE_sim.SingleLine.CalOutPut' 出错:'VOID' 无法接受方法 'Name'。是怎么回事啊?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-8-15 21:47 , Processed in 0.021744 second(s), 17 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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