设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 3514|回复: 0

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

[复制链接]
发表于 2016-6-14 16:17:06 | 显示全部楼层 |阅读模式
使用Plant Simultation 9运行周老师的生产系统仿真教程第一章的P5的程序时,总是报错(勘误之后的),显示。$ Y, ]' g6 @. B; L( @
is+ [! U: ]+ y1 N) d
        m,n:integer; --zhengshu bianliang+ Z4 b, a' f7 x, D
        Name:string; --zifuchuan bianliang% S5 C, d2 s* t. I0 g/ D! S
        obj:Object;  --dui xiang lei xing bianliang; f( Q( V" m4 V; l% ^
do
! c0 c; F( n+ U9 G2 o        m:=str_to_num(omit(?.Name,1,5));
2 d/ f* ~% W- X$ |% u        Name:=sprint("Output_Line",m); --sheng chan xian mingcheng! K, @& t. o$ e' D9 Q  {4 r0 N
        Obj:=str_to_obj(Name);
9 _% d7 f/ g, n1 T0 X; X& M* V        n:=?.StatNumIn; ( L1 Q; \7 q; L9 O( L
        Obj.val:=n;+ l/ k4 w9 X  U7 L( h' d
        if m>1 then' D& k: D* H/ K5 k( ^/ M, ~7 i
                Name:=sprint("OutRate_Line",m);
1 ?/ f# k; G' I8 A5 v4 K+ ?, f                Obj:=str_to_obj(Name);5 `, k& g  t% M1 @( n
             Obj.val:=n*100/Output_Line1; 5 x) ]  y. ]$ F: K+ c6 x1 D' H! i* D
        end;
& ^3 b& s" o0 \1 e8 u; Yend;. U' K! c& ]- D
行 6 中的方法 '.DOE_sim.SingleLine.CalOutPut' 出错:'VOID' 无法接受方法 'Name'。是怎么回事啊?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-5-20 11:59 , Processed in 0.013266 second(s), 17 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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