设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 5267|回复: 0

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

[复制链接]
发表于 2016-6-14 16:17:06 | 显示全部楼层 |阅读模式
使用Plant Simultation 9运行周老师的生产系统仿真教程第一章的P5的程序时,总是报错(勘误之后的),显示。
& S0 `5 m0 _  I/ |is% D/ Y, y. x: C8 u- P6 m/ g& g# j
        m,n:integer; --zhengshu bianliang
7 `0 F" h; A% |. R5 ~: ~        Name:string; --zifuchuan bianliang
# n  G: G' i9 z) m& l        obj:Object;  --dui xiang lei xing bianliang( |$ |- Y1 R. o/ j7 }( K, t9 {
do: _5 Y8 C3 R9 Z9 R5 D4 \
        m:=str_to_num(omit(?.Name,1,5));
. H( k' H7 q* X        Name:=sprint("Output_Line",m); --sheng chan xian mingcheng
! j! V. z3 r+ D7 O3 [        Obj:=str_to_obj(Name);
; b( y$ K' ]/ L' [2 K        n:=?.StatNumIn; 1 k' y: i3 i" J0 m% P# Q8 G
        Obj.val:=n;  X% k/ ?; T; f" o
        if m>1 then- A" U0 J( X2 s  ~
                Name:=sprint("OutRate_Line",m);
) _- x$ O4 Q4 I2 |  q: e                Obj:=str_to_obj(Name);, X" j1 z2 T% U  i6 B
             Obj.val:=n*100/Output_Line1;
5 d/ F+ M6 T6 Z) p0 N1 ?( c( G        end;
$ R& ]6 H6 ^9 C/ R/ A" T9 w2 c1 e, \end;
  K  Q! V, i( p) I# e行 6 中的方法 '.DOE_sim.SingleLine.CalOutPut' 出错:'VOID' 无法接受方法 'Name'。是怎么回事啊?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2025-12-15 13:46 , Processed in 0.048934 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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