MATLAB Answers

modify powertrain blockset library controller

3 views (last 30 days)
ricky C
ricky C on 14 Oct 2019
Answered: Mike Sasena on 22 Nov 2019
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!

  0 Comments

Sign in to comment.

Answers (1)

Mike Sasena
Mike Sasena on 22 Nov 2019
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.

  0 Comments

Sign in to comment.

Sign in to answer this question.

Tags

Products


Release

R2019b

Translated by