open_system
开放型号,库,子系统或块对话框
Syntax
描述
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.
对于块,打开块的“参数对话框”。
To open a specific subsystem or block, you must load the model or library containing it. Otherwise Simulink returns an error.
您可以通过提供第二个输入参数来覆盖默认行为。
open_system(
loads the specified model or library without opening the Simulink Editor. This is equivalent to usingsys
,'loadonly')LOAD_SYSTEM
.
open_system(
打开子系统sbsys
,'窗户')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(
打开子系统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 byBLK
,'面具')BLK
. Load the model or library containingBLK
before opening it.
open_system(
在蒙版块或子系统的面具下看。它在蒙版下打开块的对话框,或在新的Simulink编辑选项卡中打开蒙版子系统。金宝app这等同于Look Under Maskmenu item. Before opening a specific subsystem or block, load the model or library containing it. Otherwise Simulink returns an error.BLK
,'力量')
open_system(
opens the block parameter dialog box.BLK
,'范围')
open_system(
运行块回调BLK
,'OpenFcn')OpenFCN
.
Examples
Input Arguments
提示
To open a referenced model in the context of a model hierarchy, use theopen
function with aSimulink.BlockPath
目的。