creating your own block into simulink library

조회 수: 5 (최근 30일)
Metin
Metin 2013년 8월 26일
hello, my question is about to create your own block into central library of simulink from a model that I have done. In my model I have used some block of simulink-library(e.g integrator, sum and 3 gain elements) and now I want to create this model as a block element in the library of simulink in another word I want to extract it with its e.g. five variable parameters, 2 inputs and one output as a usable block from library. the reason why I need such a thing is I have used this block so many times in my simulink model and now I want to use it from library to manege a case that I can change all parameters of model by a vector or as a function of time during simulation, for any suggestion thanks in advance

채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2013년 8월 26일
  1. Create a subsystem.
  2. open a new lib file
  3. drag your subsystem to your lib file and save this lib file
  댓글 수: 2
Metin
Metin 2013년 8월 26일
first of all thanks for your answer; I have done all 3 steps but when I want to save new library file it is just a "mdl" file also and when I want to copy this file into unlocked library of simulink it only pastes 2 inputs but not actual subsystem, is there a way to save new lib file or where I am doing wrong? thank again:)
Azzi Abdelmalek
Azzi Abdelmalek 2013년 8월 26일
A library file is a special mdl file. Look at this link

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Subsystems에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by