modify powertrain blockset library controller

조회 수: 1 (최근 30일)
ricky C
ricky C 2019년 10월 14일
답변: Mike Sasena 2019년 11월 22일
Hi,
I want to add an additional input to the current controller library block with the lookup tables used. More specifically the blocks below.
SiEngineController (SiEngineController)/SI Controller/Controllers
SiEngineController (SiEngineController)/SI Controller/Estimators
When I unlock the library, the n-D lookup blocks still show locked and disable link is also greyed out. Can anyone tell me the appropriabte way to do this?
Thanks!

답변 (1개)

Mike Sasena
Mike Sasena 2019년 11월 22일
Thanks for your question, Ricky. Yes, it is possible to modify library blocks, but we urge caution when doing so. I'd recommend you work with a local copy of the sub-library you want to modify instead of the original source. Otherwise, you will effectively be corrupting the original source library that is used in several of the reference applications in Powertrain Blockset. This will also make it difficult to run MATLAB updates in the future if your install directory has been modified.
These libraries are nested, so you have to unlock the library you want to modify along with its parents libraries. After unlocking a library, perform and "update diagram" (Ctrl+D), then right-click the block to disable the link.
Once you're done with your modification, make sure you test it thoroughly. There are several scripts running in the block masks and the reference applications that use the blocks. Making changes to the library blocks can have unintended side effects.

카테고리

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

태그

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by