In which ways can Simscape block parameters be defined?

1 次查看(过去 30 天)
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
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