各位大哥,小弟我刚学习EM-PLANT不久,我是一直照着eM-Plant+7.0系统模拟(培训教程)这个教程来学的,现在学到最后阶段也就是在Dialog这里出了问题。我按照要求编写了对话框。对话框里设置了四个按钮。他们分别是《启动模拟》、《停止模拟》、《重置》、《初始化》。名称分别是:Start、Stop、Reset、Init。我修改的Callback Method 如下:3 E% _: p1 x1 r
(action : string)% i2 U" ?' E0 d# M
is - ?7 b* t2 G m3 Q* c7 R ido5 M/ ]" Q' N/ k2 O
inspect action& P9 ]: _! h% o+ H2 d
when "Open" then ! d' p/ S8 N2 V( a; G& B% s -- TODO: add code for the "Open" action here 9 _+ M. ^ Z" r when "Apply" then ; n% U. @9 G* B' [+ x -- TODO: add code for the "Apply" action here4 D+ K5 X4 n$ F' `) x+ Y+ D
when "Close" then 1 F$ @. V5 H& D& J. Q, B7 @) I3 ~ -- TODO: add code for the "Close" action here ( D3 L1 Q4 U! B/ ?1 F. \ when "start" then .Trainning_Model1.plant5.EventController.start; ) A0 U1 F: Z7 W4 f- b3 @ when "stop" then .Trainning_Model1.plant5.EventController.stop; + ~* u. |* Q) M* Q" G when "reset" then .Trainning_Model1.plant5.EventController.reset;/ f2 l U' ?* ]0 N. g% p
when "Init" then .Trainning_Model1.plant5.EventController.init;4 a$ i! s7 y' K# d, }4 N
end;! b" p- t. ]8 R8 U3 s
end; 2 ^% d. a9 K2 L- P当我从对话框点击《启动模拟》,模型确怎么也不会动。我找了好久原因都没有找着。也尝试着在本模型中设置Dialog .结果还是一样,特请各位大哥帮忙。谢谢!