Making invocation object-oriented in Simulink models

Yi Lin, Yu Chen, Bei Hong, Peng Li, Zhongjie Meng, Jie Yan

科研成果: 期刊稿件文章同行评审

摘要

Recently, to liberate the latent power of Simulink, Matlab gives support to object-oriented programming in two ways: (1) it supports object-oriented techniques in M programming language; (2) it enables the integration of C/C++Mex modules into Simulink. Although Matlab supports object-oriented programming current Simulink versions do not allow designers to invoke objects written in M language or existing in C++Mex modules in an object-oriented manner. In order to allow the designers to do so, in this paper, we analyze the semantic differences between Simulink and object-oriented models. We propose a model to allow the designers to define parameterized object unit in subsystem form in Simulink. This object unit refers to a numerical object identification, which is created in Matlab workspace or Mex modules and corresponds to an external object instance. If other blocks/subsystems can obtain the object identification from the signal link between the object unit and themselves, they can invoke the functions of the external object by utilizing the command pattern (a kind of object oriented design pattern). The techniques presented in this paper have been used with some success in an applicable numerical simulation software designed by us.

源语言英语
页(从-至)508-512
页数5
期刊Xibei Gongye Daxue Xuebao/Journal of Northwestern Polytechnical University
26
4
出版状态已出版 - 8月 2008

指纹

探究 'Making invocation object-oriented in Simulink models' 的科研主题。它们共同构成独一无二的指纹。

引用此