In which ways can Simscape block parameters be defined?

조회 수: 5 (최근 30일)
N. Nissen
N. Nissen 2018년 12월 18일
답변: Arvind Sathyanarayanan 2018년 12월 19일
I am currently trying to understand a Simscape model which someone else created.
The model contains a custom block named 'Bremsventilpatrone', which is taken from the custom library 'library1'. This custom block contains a PS-1D-Lookuptable which has the following parameters:
Table grid vector: s1/1000
Table values: A1/1e6
My problem now is to find the values of s1 and A1. If I open the model with an empty matlab workspace, the PS-1D-Lookuptable block does not appear in red, so s1 and A1 are already defined somewhere. Also, I can run the simulation (after defining the remaining parameters in the workspace) and it works fine. After the simulation, s1 and A1 still do not appear in the workspace. Therefore I wonder where these parameters could be defined, or which ways I have to find s1 and A1.
Thanks for any ideas!

답변 (1개)

Arvind Sathyanarayanan
Arvind Sathyanarayanan 2018년 12월 19일
The block parameters could be initialized in the mask's block or in the model callbacks.
To view the block's mask, select the block hit Ctrl+M and look at the initialization tab in the window that opens.
To view the model's callbacks, right click anywhere in the model, select model properties and look under the callbacks tab. Callbacks with code in them are indicated with an asterisk.

카테고리

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

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by