设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 5899|回复: 0

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

[复制链接]
发表于 2016-6-14 16:17:06 | 显示全部楼层 |阅读模式
使用Plant Simultation 9运行周老师的生产系统仿真教程第一章的P5的程序时,总是报错(勘误之后的),显示。
- p* a) p  x* ?) f$ x/ \is8 K8 e' k7 O' D+ B6 `
        m,n:integer; --zhengshu bianliang
# E6 D  W4 H) U8 ^        Name:string; --zifuchuan bianliang+ M1 }% c  U! W
        obj:Object;  --dui xiang lei xing bianliang  L/ M/ a. k9 F
do
, }$ }: h. W3 d6 @6 i) }, e        m:=str_to_num(omit(?.Name,1,5));
5 M0 U: ?. ~# ^3 \3 O( C        Name:=sprint("Output_Line",m); --sheng chan xian mingcheng! C6 j/ ~0 Q+ p7 ^5 s
        Obj:=str_to_obj(Name);
7 v* u5 B4 \' B7 h# Z        n:=?.StatNumIn;
2 `: X/ S$ \1 a) G- ?        Obj.val:=n;" z( L- r( ]6 K3 J; @" _
        if m>1 then
8 [, y7 J5 M7 h; A+ z                Name:=sprint("OutRate_Line",m);
- ?$ O# i' j9 H* h# ]0 m6 ]                Obj:=str_to_obj(Name);, ^% g: K9 n  e5 w) Q9 l
             Obj.val:=n*100/Output_Line1; ! c. h% E. Q' Q* ~- ^* x. L- G  m
        end;+ Z9 S) l% z- r- ^! b  \9 T' ^
end;& t) o5 s$ a+ N: W/ d3 Y
行 6 中的方法 '.DOE_sim.SingleLine.CalOutPut' 出错:'VOID' 无法接受方法 'Name'。是怎么回事啊?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-6-12 09:35 , Processed in 0.016245 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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