simulink方框_simulink模型引用
A model becomes a referenced model when a Model block in anothermodel references it. Any model canfunction as a referenced model, and can continue to function as a separatemodel.當(dāng)模型塊在另一個(gè)模型中引用時(shí),模型就變成了引用模型。任何模型都可以作為參考模型,并且可以繼續(xù)作為單獨(dú)的模型運(yùn)行。
1如果包含要引用的模型的文件夾不在MATLAB路徑上,則添加文件夾到MATLAB路徑。
2Create an instance of theModel block in the parent model. The new block is initially unresolved becauseitdoesnotspecifyareferencedmodel.在父模型中創(chuàng)建Model塊的實(shí)例。新塊最初無(wú)法解析,因?yàn)樗鼪](méi)有指定引用的模型。
3.要打開(kāi)塊參數(shù)對(duì)話框,雙擊Model塊。
4.在“模型名稱”字段中輸入引用的模型的名稱。此名稱必須包含少于60個(gè)字符,不包括?;蛘摺?/p>
重點(diǎn)來(lái)了,下面我們來(lái)演示一編如果還不會(huì)把文件添加到路徑百度一下
打開(kāi)sldemo_mdlref_basic模型,通過(guò)view/modelexplorer可以看到模型瀏覽器有兩個(gè)模型,最下面那個(gè)是被引用的,可以右鍵模型打開(kāi)看具體模型結(jié)構(gòu),如圖所示
下面我們按照上面的步驟來(lái)建立引用模型首先view/library browser打開(kāi)模型庫(kù)瀏覽器找到子系統(tǒng)組
就是這個(gè)模塊了,把他拖到模型編輯器雙擊在彈出方框model name中填入你想要引用的模型名即可
Convert Subsystem Blocks to ModelBlocks
將子系統(tǒng)塊轉(zhuǎn)換為模型塊
To convert a Subsystem block to a Model block, use the Model Reference Conversion Advisor.
若要將子系統(tǒng)塊轉(zhuǎn)換為模型塊,請(qǐng)使用模型引用轉(zhuǎn)換顧問(wèn)。
要打開(kāi)模型引用轉(zhuǎn)換顧問(wèn),右鍵單擊子系統(tǒng)塊并選擇
Subsystem & Model Reference > Convert to > Referenced Model.
總結(jié)
以上是生活随笔為你收集整理的simulink方框_simulink模型引用的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: 降压模块的使用
- 下一篇: 【PS基础教程】PS制作圆形小图标