设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 4790|回复: 0

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

[复制链接]
发表于 2016-6-14 16:17:06 | 显示全部楼层 |阅读模式
使用Plant Simultation 9运行周老师的生产系统仿真教程第一章的P5的程序时,总是报错(勘误之后的),显示。
& ~1 F0 }+ y3 S' |/ Y: {is
# K" c, F, Y3 W4 B        m,n:integer; --zhengshu bianliang( P; D+ w; Z0 c6 `
        Name:string; --zifuchuan bianliang
% _7 F" |  ~& Q4 {2 S) D- Z        obj:Object;  --dui xiang lei xing bianliang
# x! `" E5 N3 }2 b: C. p/ H) Bdo3 J: Z( Z0 X  |) v1 ], t! @1 Q
        m:=str_to_num(omit(?.Name,1,5));
; v/ A7 Q/ S4 @% L- W! _3 b        Name:=sprint("Output_Line",m); --sheng chan xian mingcheng- V8 k, G+ G2 r$ r
        Obj:=str_to_obj(Name);! ^) I1 O' w' a9 e+ l5 [# [$ h8 e
        n:=?.StatNumIn; 8 a( [% ]' V% O6 ]: e+ x
        Obj.val:=n;
3 g" E! F" f/ }0 Q4 L9 x  _        if m>1 then
7 F0 _- J8 `) i                Name:=sprint("OutRate_Line",m);7 D* H7 v# L% C, o* d0 Q
                Obj:=str_to_obj(Name);
+ W/ n: C5 u4 O9 b             Obj.val:=n*100/Output_Line1; 1 H% }3 {! ]$ J4 `) U  a
        end;
/ b! z" ~8 S! s3 `5 Z7 X/ Lend;. Q, B/ w3 W, k
行 6 中的方法 '.DOE_sim.SingleLine.CalOutPut' 出错:'VOID' 无法接受方法 'Name'。是怎么回事啊?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2025-9-4 22:18 , Processed in 0.015268 second(s), 17 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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