设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 5959|回复: 0

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

[复制链接]
发表于 2016-6-14 16:17:06 | 显示全部楼层 |阅读模式
使用Plant Simultation 9运行周老师的生产系统仿真教程第一章的P5的程序时,总是报错(勘误之后的),显示。
0 A8 q# C. z& C9 O8 `is+ U9 ]2 h+ t! y" u
        m,n:integer; --zhengshu bianliang
2 }* k& r; w( _5 U- [& l' A% O        Name:string; --zifuchuan bianliang
1 L* y3 I4 {5 J' O. X        obj:Object;  --dui xiang lei xing bianliang1 Z: x5 w  K  g
do
: N: a6 G4 P' S        m:=str_to_num(omit(?.Name,1,5));
% {1 t7 m' H+ a) \! b/ x+ {        Name:=sprint("Output_Line",m); --sheng chan xian mingcheng$ Y2 S1 K; B+ {4 O9 u
        Obj:=str_to_obj(Name);/ U2 e4 L, s- p7 V' i/ |
        n:=?.StatNumIn;
5 X8 A; T" D0 T: x# X8 P; ~: d) _        Obj.val:=n;% _: I! j% L2 x: X# w* R+ m
        if m>1 then* ~& g4 t, ?! |
                Name:=sprint("OutRate_Line",m);
+ J; [& [6 i! H- F                Obj:=str_to_obj(Name);
2 q3 N2 C& V1 p! a5 O$ S5 X& S. `             Obj.val:=n*100/Output_Line1;
6 I- G; d) \- R( R' I- t! R6 ~        end;$ _+ J& {" d8 o  m* c
end;
! \) Y( x- b  q7 Q' d( K" K( i: D* T行 6 中的方法 '.DOE_sim.SingleLine.CalOutPut' 出错:'VOID' 无法接受方法 'Name'。是怎么回事啊?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-7-1 18:38 , Processed in 0.019278 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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