设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 6291|回复: 0

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

[复制链接]
发表于 2016-6-14 16:17:06 | 显示全部楼层 |阅读模式
使用Plant Simultation 9运行周老师的生产系统仿真教程第一章的P5的程序时,总是报错(勘误之后的),显示。" R; w- L+ `  ]0 @) ~
is
; S. f1 M$ K; |! ], {        m,n:integer; --zhengshu bianliang& @% F) h" B1 g! ^  c% k5 R
        Name:string; --zifuchuan bianliang  d9 D, A/ q, ^2 J! T
        obj:Object;  --dui xiang lei xing bianliang
+ w; }1 L. K5 r( s5 b; gdo
- z  W) F( u4 {, [6 `  h% o        m:=str_to_num(omit(?.Name,1,5));
* @' Z! _9 ~' w  ^7 ~        Name:=sprint("Output_Line",m); --sheng chan xian mingcheng
; f7 v% G7 A$ e        Obj:=str_to_obj(Name);
/ n7 _' M& N: ~8 a9 \        n:=?.StatNumIn;
0 b3 b* c1 R  k0 b        Obj.val:=n;
9 y; u& J6 Z) W1 a        if m>1 then6 l, Z1 r; `6 y) W
                Name:=sprint("OutRate_Line",m);
& R! z* D4 s" u/ {5 U8 S% a% g- \. k2 l                Obj:=str_to_obj(Name);
5 \3 b* ]$ o; a) y+ }6 o1 u             Obj.val:=n*100/Output_Line1; ( [& C5 W: L7 G. B
        end;1 y) ]+ y& c4 I% A
end;- ]2 w/ J) `; n  _& C: f
行 6 中的方法 '.DOE_sim.SingleLine.CalOutPut' 出错:'VOID' 无法接受方法 'Name'。是怎么回事啊?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-9-9 14:11 , Processed in 0.012920 second(s), 17 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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