设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 4961|回复: 0

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

[复制链接]
发表于 2016-6-14 16:17:06 | 显示全部楼层 |阅读模式
使用Plant Simultation 9运行周老师的生产系统仿真教程第一章的P5的程序时,总是报错(勘误之后的),显示。5 p% a, H  _/ \$ U# B
is$ w! y$ w" s  A5 ]+ V: o
        m,n:integer; --zhengshu bianliang
- F8 g; A% l: C, T7 W; t7 R        Name:string; --zifuchuan bianliang
5 e: v& I, X; i        obj:Object;  --dui xiang lei xing bianliang& w' ]% o0 B' [7 ~- g) t# H
do4 y2 q) M0 d3 V& z9 G* L
        m:=str_to_num(omit(?.Name,1,5));
3 d7 l8 }; L- l; o        Name:=sprint("Output_Line",m); --sheng chan xian mingcheng" Q4 A9 t3 {9 C% s
        Obj:=str_to_obj(Name);- w& L2 e! L1 k! ]9 X* w% ]: g
        n:=?.StatNumIn;
0 Z& K8 r& h8 g: U1 Q& |; S9 q4 V( N        Obj.val:=n;
7 D  y2 `( s9 l( K) O        if m>1 then
; Q1 k5 O% B) `1 f' E7 R5 F, ?                Name:=sprint("OutRate_Line",m);
9 B8 ~# p# J$ ~7 [  a9 Q                Obj:=str_to_obj(Name);
. `# J7 y' ^* Y4 Z% k% w- M             Obj.val:=n*100/Output_Line1;
  Q5 g/ x8 X: e5 H7 W2 @+ ?: @        end;- }# {2 d. |+ N. |3 f: p) `5 m
end;" }0 m: y. K7 p  h1 ^- Z! {
行 6 中的方法 '.DOE_sim.SingleLine.CalOutPut' 出错:'VOID' 无法接受方法 'Name'。是怎么回事啊?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2025-10-15 02:40 , Processed in 0.019905 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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