How to collect cyclomatic complexity of linked block?

조회 수: 2 (최근 30일)
Dmytro Sokol
Dmytro Sokol 2021년 2월 22일
답변: Monika Jaskolka 2021년 2월 28일
I need to get the Aggregated Complexity of the system. But the results exclude linked block which are used in the system. How to collect the cyclomatic complexity of linked blocks? (Is it even possible?)
I have tried to implement the following idea: unlink these blocks with the help of command below in order to collect the results and after that link it:
set_param('linked_block_name','Lock','off')
Unfortunately I get the error:
<name_of_library_block> block (mask) does not have a parameter named 'Lock'.

채택된 답변

Monika Jaskolka
Monika Jaskolka 2021년 2월 28일
To break links to libraries, you need to change the 'LinkStatus' parameter. For example:
set_param('linked_block_name', 'LinkStatus', 'none')
https://www.mathworks.com/help/simulink/ug/control-linked-block-status-programmatically.html

추가 답변 (0개)

카테고리

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

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by