设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 5277|回复: 0

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

[复制链接]
发表于 2016-6-14 16:17:06 | 显示全部楼层 |阅读模式
使用Plant Simultation 9运行周老师的生产系统仿真教程第一章的P5的程序时,总是报错(勘误之后的),显示。
& \. g" @; e0 v9 l! y0 U5 yis4 K% `. |& u4 I+ I( l
        m,n:integer; --zhengshu bianliang  D/ O' v0 V$ p# t/ ]* O4 M
        Name:string; --zifuchuan bianliang
( V& H. }+ N6 N+ V        obj:Object;  --dui xiang lei xing bianliang
1 L1 _" ], `) ~- t! cdo
: o! d$ M0 G8 h6 s4 Z        m:=str_to_num(omit(?.Name,1,5));
" ?% V% E9 A  i1 ?        Name:=sprint("Output_Line",m); --sheng chan xian mingcheng
# Q1 B8 |% C4 _* X' s        Obj:=str_to_obj(Name);" K- E! |1 ]' r9 W4 S
        n:=?.StatNumIn; ) i" `8 g+ Q$ F0 B. ~! C8 G
        Obj.val:=n;
1 f6 J; j) e. N* J        if m>1 then
0 Z* k$ h1 u, W2 H% d" l$ d% c                Name:=sprint("OutRate_Line",m);
# i+ }- P! |: K0 U8 V' N5 O                Obj:=str_to_obj(Name);
3 v9 \2 j5 R: J5 u: a/ {             Obj.val:=n*100/Output_Line1; 2 I/ j5 i5 s$ y& @6 q5 d
        end;
, h/ C4 V  w  Kend;
5 S0 x- J+ y1 z8 S( M行 6 中的方法 '.DOE_sim.SingleLine.CalOutPut' 出错:'VOID' 无法接受方法 'Name'。是怎么回事啊?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2025-12-17 01:45 , Processed in 0.019350 second(s), 20 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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