open_system
Open model, library, subsystem, or block dialog box
Syntax
Description
open_system(
opens the specified model, library, subsystem, or block. This is equivalent to
double-clicking the model or library in the Current Folder Browser, or the
subsystem or block in the Simulink® Editor. obj
)
A model or library opens in a new window. For a subsystem or block within a model, the behavior depends on the type of block and its properties.
Any OpenFcn callback parameter is evaluated.
If there is no OpenFcn callback, and a mask is defined, the mask parameter dialog box opens.
Without an OpenFcn callback or a mask parameter, Simulink opens the object.
A referenced model opens in a new window.
A subsystem opens in a new tab in the same window.
For blocks, the parameters dialog box for the block opens.
To open a specific subsystem or block, you must load the model or library containing it. Otherwise Simulink returns an error.
You can override the default behavior by supplying a second input argument.
open_system(
loads
the specified model or library without opening the Simulink Editor. This is equivalent to using sys
,'loadonly')load_system
.
open_system(
opens the subsystem sbsys
,'window')sbsys
in a new Simulink Editor window. Before opening a specific subsystem or block, load
the model or library containing it. Otherwise Simulink returns an error.
open_system(
opens the subsystem in a new Simulink Editor tab in the same window. Before opening a specific subsystem
or block, load the model or library containing it. Otherwise Simulink returns an error.sbsys
,'tab')
open_system(
opens the mask dialog box of the block or subsystem specified by
blk
,'mask')blk
. Load the model or library containing
blk
before opening it.
open_system(
looks under the mask of a masked block or subsystem. It opens the dialog box of
the block under the mask or opens a masked subsystems in a new Simulink Editor tab. This is equivalent to the Look Under
Mask menu item. Before opening a specific subsystem or block,
load the model or library containing it. Otherwise Simulink returns an error.blk
,'force')
open_system(
opens the block parameter dialog box.blk
,'parameter')
open_system(
runs the block callback blk
,'OpenFcn')OpenFcn
.
Examples
Input Arguments
Tips
To open a referenced model in the context of a model hierarchy, use the open
function with a Simulink.BlockPath
object.
Version History
Introduced before R2006a
See Also
new_system
| load_system
| close_system
| save_system
| open
(BlockPath)