DSPRelated.com
Forums

Automatically inserting submodels

Started by Tamas Szakacs June 16, 2003
Hallo, Is there any way to insert, and connect a submodel automatically to an
existing model? I would like to have a gui, or a scrip, which can load different simulink
models, and connect them to each others. Let say I have different trucks,
and different trailers, and I would like to select one truck, and one
trailer, and connect them to each others. Now I am doing it with copy the trailer, and paste it to the truck, and
connect the lines manually, but I would like to have an interface, where by
choosing the appropriate vehicles the rest of the procedure is automatically
done. Thank for the tips. Tamas



See whether

add_line,delete_line
add_block,delete_block

commands are useful to you.
With those commands you can change your model by
deleting or adding blocks and lines.

Navan

--- Tamas Szakacs <> wrote:
> Hallo, > Is there any way to insert, and connect a submodel
> automatically to an
> existing model? > I would like to have a gui, or a scrip, which can
> load different simulink
> models, and connect them to each others. Let say I
> have different trucks,
> and different trailers, and I would like to select
> one truck, and one
> trailer, and connect them to each others. > Now I am doing it with copy the trailer, and paste
> it to the truck, and
> connect the lines manually, but I would like to have
> an interface, where by
> choosing the appropriate vehicles the rest of the
> procedure is automatically
> done. > Thank for the tips. > Tamas


__________________________________


See whether

add_line,delete_line
add_block,delete_block

commands are useful to you.
With those commands you can change your model by
deleting or adding blocks and lines.

Navan

--- Tamas Szakacs <> wrote:
> Hallo, > Is there any way to insert, and connect a submodel
> automatically to an
> existing model? > I would like to have a gui, or a scrip, which can
> load different simulink
> models, and connect them to each others. Let say I
> have different trucks,
> and different trailers, and I would like to select
> one truck, and one
> trailer, and connect them to each others. > Now I am doing it with copy the trailer, and paste
> it to the truck, and
> connect the lines manually, but I would like to have
> an interface, where by
> choosing the appropriate vehicles the rest of the
> procedure is automatically
> done. > Thank for the tips. > Tamas


__________________________________