设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 3543|回复: 0

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

[复制链接]
发表于 2016-6-14 16:17:06 | 显示全部楼层 |阅读模式
使用Plant Simultation 9运行周老师的生产系统仿真教程第一章的P5的程序时,总是报错(勘误之后的),显示。$ g$ K* o) `/ |
is! ]. {) M5 W' P) M9 X; h
        m,n:integer; --zhengshu bianliang8 m! i! B; l( O* h; \( T; Q
        Name:string; --zifuchuan bianliang
* }$ E( Z9 D% t8 j$ Z! i        obj:Object;  --dui xiang lei xing bianliang
1 d0 n  C& Y6 M, X5 @do
! z5 K2 m( W( Q        m:=str_to_num(omit(?.Name,1,5));
" T) m- B; \2 g0 a" D$ N! h        Name:=sprint("Output_Line",m); --sheng chan xian mingcheng
9 D: {; j$ C; v. a  G' v        Obj:=str_to_obj(Name);
1 C6 i8 e. a' ^# u) P2 E        n:=?.StatNumIn; ' i, Y- i8 B" y
        Obj.val:=n;
, U, r* W6 ?: G5 C" L9 t        if m>1 then
& O0 ^+ M) y8 l) ]8 l! X! s) D                Name:=sprint("OutRate_Line",m);8 b+ f9 k' Z8 a% z
                Obj:=str_to_obj(Name);5 m4 ~( R9 W* Z
             Obj.val:=n*100/Output_Line1;
0 W6 p  |6 y9 `- R8 K: o        end;$ M5 {$ T" `1 ]( o0 m6 M
end;
$ c! x& ^6 b, t, D, ~; x. ]行 6 中的方法 '.DOE_sim.SingleLine.CalOutPut' 出错:'VOID' 无法接受方法 'Name'。是怎么回事啊?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-6-15 11:47 , Processed in 0.013606 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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