How to determine a broken connection in a test harness using a matlab script?
조회 수: 2 (최근 30일)
이전 댓글 표시
Hello,
I have a test harness for which interfaces are ever changing. So, I wish to automate the process of creating a test harness through matlab script. A situation occurs when inputs/outputs are removed and added in the model under test, the links are broken in the test harness as shown below in the snapshot.
How can I determine the connectivity between blocks (subsystems in this case)? I tried 'PortConnectivity' but I think it only works for Inports and Outports. As the above diagram shows, what command can help me to get parameters to ensure connectivity of the subsystems?
댓글 수: 0
답변 (1개)
Monika Jaskolka
2020년 2월 4일
The following command will provide a list of line handles that are unconnected in the top-level of the model:
lines = find_system(gcs, 'SearchDepth', 1, 'Findall', 'on', 'Type', 'line', 'Connected', 'off')
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Test Harnesses에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!