设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 4497|回复: 0

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

[复制链接]
发表于 2016-6-14 16:17:06 | 显示全部楼层 |阅读模式
使用Plant Simultation 9运行周老师的生产系统仿真教程第一章的P5的程序时,总是报错(勘误之后的),显示。
4 I2 Y* H; L8 jis
& m6 X! ^: q; T' M& P: Q2 P0 E        m,n:integer; --zhengshu bianliang
# R/ ^, d- K( m+ B3 u' X9 {        Name:string; --zifuchuan bianliang4 s: k  Q2 o" r/ w
        obj:Object;  --dui xiang lei xing bianliang) I6 E! M6 \2 ?) S+ U9 U
do
% o# Q( J& L! _) |        m:=str_to_num(omit(?.Name,1,5));
7 {  n3 V: A5 J: f! R        Name:=sprint("Output_Line",m); --sheng chan xian mingcheng& }# H5 z; U7 l8 Q' e, W' f8 S
        Obj:=str_to_obj(Name);  o  {2 m) [$ e5 W
        n:=?.StatNumIn; : \# {$ X- j5 T% g, u
        Obj.val:=n;+ A& w; A4 M1 a& X' ^/ }8 |
        if m>1 then* E1 P' f- g7 Y  K8 U
                Name:=sprint("OutRate_Line",m);
1 q/ N4 W* J3 f0 @8 F% [                Obj:=str_to_obj(Name);1 ?- x5 N% V8 M3 Z
             Obj.val:=n*100/Output_Line1;
2 i6 K( S% `; T5 [  B        end;
5 H/ I# l- i% Cend;: D6 U( |5 U8 ?/ O
行 6 中的方法 '.DOE_sim.SingleLine.CalOutPut' 出错:'VOID' 无法接受方法 'Name'。是怎么回事啊?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2025-6-19 14:50 , Processed in 0.016878 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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