设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 5308|回复: 0

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

[复制链接]
发表于 2016-6-14 16:17:06 | 显示全部楼层 |阅读模式
使用Plant Simultation 9运行周老师的生产系统仿真教程第一章的P5的程序时,总是报错(勘误之后的),显示。
! }/ J7 X9 W7 |/ `4 M1 Mis
, r) S" S. ~& ]* J0 S& K        m,n:integer; --zhengshu bianliang2 D6 q$ A7 ^! t* @/ y
        Name:string; --zifuchuan bianliang6 G/ l" a/ J4 T& _" e7 p
        obj:Object;  --dui xiang lei xing bianliang
  I2 N1 F+ u* V6 N3 B' m* Ddo
+ b5 L( M- A6 [        m:=str_to_num(omit(?.Name,1,5)); % e( B# W. h( V
        Name:=sprint("Output_Line",m); --sheng chan xian mingcheng
6 y, c" ]+ H4 x9 A        Obj:=str_to_obj(Name);% E0 ?2 x% u: _" l( k! m
        n:=?.StatNumIn; 9 T8 R* ^9 [0 o+ }! f
        Obj.val:=n;8 {9 a: _* w6 I! Y! [/ f! W# x! B+ g
        if m>1 then- |" b$ ?+ a) M/ |6 D. V
                Name:=sprint("OutRate_Line",m);# n- ~$ s+ a* A' N
                Obj:=str_to_obj(Name);  R! i7 I1 @0 E# x: k
             Obj.val:=n*100/Output_Line1;
+ u1 B0 u: m* ?" M; n" @) d+ n- E* m3 b/ K        end;
0 P2 [  q" l4 r  J+ y5 u$ Hend;
: |9 G0 c2 p- ~* x2 D' v行 6 中的方法 '.DOE_sim.SingleLine.CalOutPut' 出错:'VOID' 无法接受方法 'Name'。是怎么回事啊?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2025-12-22 05:49 , Processed in 0.016319 second(s), 17 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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