Can the Simulink HMI blocks be programmatically configured ?

조회 수: 4 (최근 30일)
Bibin
Bibin 2016년 1월 7일
댓글: Arun Joe Joseph 2019년 9월 18일
The Simulink HMI blocks (such as Guages, Knobs, Switches etc.) can they be programmatically configured in a model using m scripting ? For example I want use a knob block to associate it to a calibration constant in my model. So I know all my calibrations and its range, so I want to make some tool which will let me add these HMI blocks and configure it using a script.

채택된 답변

Vaibhav Awale
Vaibhav Awale 2016년 1월 11일
Hi,
Unfortunately there is no command-line API for the new Graphical Controls and Displays in R2015a, so you cannot programmatically set its parameters.
However, you can at least add it with add_block, though. The proper path is 'simulink_hmi_blocks/Knob'. So, for example, you can do
>> add_block('simulink_hmi_blocks/Knob', 'Example/Knob')
in which 'Example.slx' in a model on your current search path and is open.
I work for MathWorks and I have forwarded this feedback to the appropriate product team. They will consider incorporating this feature in one of the future releases.
Regards,
Vaibhav Awale
  댓글 수: 2
Bibin
Bibin 2016년 1월 13일
Hi Vaibhav, thanks for the reply. Great to hear that you took it as a feedback to add to the future release. Thanks a lot.
Thanks and Regards Bibin
Arun Joe Joseph
Arun Joe Joseph 2019년 9월 18일
Hi Vaibhav,
Has this feature (programmatic control of binding of HMI elements to tunable blocks etc.) been made available in a Matlab release? If so, could you please mention the earliest relase that this has been incorporated into? I am currently working on Matlab 2015B and would like to avail this feature.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

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

제품

Community Treasure Hunt

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

Start Hunting!

Translated by