How to access SM variable in Asynchronous Machine SI Units Block?
25 次查看(过去 30 天)
显示 更早的评论
I am looking inside the saturation subsystem of the mask of the Asynchronous Machine State-space model. This subsystem is inside the asychronous machine state-space model subsystem which is inside the electrical model subsystem. I would love to know the values of SM.Phisat and SM.Lsat that are used in this lookup table. How can I access these values? The "open" button shown on the right is greyed out and I cannot click on it.
0 个评论
回答(1 个)
Divyanshu
2024-7-3,11:11
Hi Isabel,
You can refer the following code to get the list of all the parameters of a mask of the current block->
m = Simulink.Mask.get(gcb);
listParams = m.Parameters;
%This listParams now contains the list of all parameters specified in the
%mask of the current block of the model
%Now based on the use-case you can utilize this list of parameters.
% For e.g. ->
listParam(1).Name
listParam(1).Value
%This two will give the Name and Value of the first parameter of the Mask.
Hope it helps!
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Continuous 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!