I want to make new simulink block with more than one input and output.
Anyone has the idea?
Petra Christian University
Department of Electrical Engineering
Siwalankerto 121-131, Surabaya 60236, Indonesia
phone : 62-31-8439040
create new simulink block
A couple different ways, depending on what you want to do.|
If you simply want to combine the functionality of existing blocks
into a new block, you can simply create a subsystem of those blocks,
and then mask it - in this way, your subsystem (i.e. your block) can
have any number of inputs and outputs. Alternately, if you want to
write a new block from scratch, you can do so as a m-file or c-mex-
file s-function (there is a good deal of information on this in the s-
functions manual - it is in the simulink directory of the online
documentation) - it is not too difficult to have multiple inputs or
outputs here, either. Again, to give them the appearance of a block
you should mask them. Having created these blocks, you may create a
new library to hold them, or add them to an existing library.
Information on creating a new library (under Matlab R11) is available
at the Mathworks website at
Hope this can be of some help to you.
Matthew Rensing --- In , Hany Ferdinando <hanyf@p...> wrote:
> dear all,
> I want to make new simulink block with more than one input and
> Anyone has the idea?
> Thank you
> Hany Ferdinando
> Petra Christian University
> Department of Electrical Engineering
> Siwalankerto 121-131, Surabaya 60236, Indonesia
> phone : 62-31-8439040