各位大哥,小弟我刚学习EM-PLANT不久,我是一直照着eM-Plant+7.0系统模拟(培训教程)这个教程来学的,现在学到最后阶段也就是在Dialog这里出了问题。我按照要求编写了对话框。对话框里设置了四个按钮。他们分别是《启动模拟》、《停止模拟》、《重置》、《初始化》。名称分别是:Start、Stop、Reset、Init。我修改的Callback Method 如下:( @/ c7 S# Q2 V" w! t! q3 D0 d+ h9 T
(action : string). M' A6 v* P0 `2 M9 w5 J& o* x6 `* H
is" Y/ f( h3 D( A+ a
do 2 J4 E% d; k8 X) R4 @ inspect action ! _3 L6 X5 {, [& z. u when "Open" then ( f; M* H8 Z! S4 L -- TODO: add code for the "Open" action here4 H' }; s9 \7 V/ y& p
when "Apply" then: n% h$ T: \& B/ }3 [# S/ d
-- TODO: add code for the "Apply" action here 5 f1 V+ h4 |1 o/ j. B; i4 |9 c: g when "Close" then 2 f+ s/ C0 o; v" r y -- TODO: add code for the "Close" action here* ^% }$ R2 ?5 H9 P9 P( G
when "start" then .Trainning_Model1.plant5.EventController.start;: n( K3 s b' L/ i% G; W; U7 ?( U
when "stop" then .Trainning_Model1.plant5.EventController.stop; 1 l0 o" x4 U" c* n when "reset" then .Trainning_Model1.plant5.EventController.reset;+ x# S# t3 x8 H, ^
when "Init" then .Trainning_Model1.plant5.EventController.init; . N& B: f$ D! w+ @ end;& D9 L% ~8 b9 A' a
end; 2 c9 k5 m7 O z3 j) a当我从对话框点击《启动模拟》,模型确怎么也不会动。我找了好久原因都没有找着。也尝试着在本模型中设置Dialog .结果还是一样,特请各位大哥帮忙。谢谢!