In which ways can Simscape block parameters be defined?
1 view (last 30 days)
Show older comments
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!
0 Comments
Answers (1)
Arvind Sathyanarayanan
on 19 Dec 2018
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.
0 Comments
See Also
Categories
Find more on Variable Initialization in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!