Which Matlab releases do the examples for 'Simulink.​HMI.Signal​Specificat​ion' actually work in? Are there any Dashboard block binding examples that actually work in 2015b?

2 ビュー (過去 30 日間)
Could someone in Matlab Staff confirm, starting from which Matlab release, the examples in the following link actually works?
See a referred example from the link:
-----------------------------------------------------------------------------------------------------------------------------------------
Connect and Configure the Slider Block
Use a Simulink.HMI.ParamSourceInfo object and the set_param function to connect the Slider block to the Gain parameter of the Mu block. To connect a parameter, the Simulink.HMI.ParamSourceInfo needs to specify the block path for the block that corresponds to the parameter and the name of the parameter.
slider_param = Simulink.HMI.ParamSourceInfo;
slider_param.BlockPath = Simulink.BlockPath('vdp/Mu');
slider_param.ParamName = 'Gain';
set_param('vdp/Slider',"Binding",slider_param)
Configure the scale for the slider for a range of 1 to 10 with a tick mark spacing of 1.
slider_limits = [1 1 10];
set_param('vdp/Slider',"Limits",slider_limits)
-----------------------------------------------------------------------------------------------------------------------------------------
The page mentions, "Introduced in R2015b". But, I cannot this example to work in anyway at all in Matlab 2015b.
I am able to get a version of the example to work for establishing only the "Binding" from a Rotary Switch Block to a constant block in Matlab 2018b. Nothing more! Not even the actual example used for Slider block!
Also, are there any better examples that actually work in Matlab 2015b that I have missed? Any help will be deeply appreciated.

回答 (0 件)

カテゴリ

Help Center および File ExchangeControl Simulations with Interactive Displays についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by