Issues with Identifying "Signal Copy" Blocks in Simulink Model Using find_system

조회 수: 5 (최근 30일)
azeddine
azeddine 2024년 6월 19일
답변: halleyhit 2024년 6월 20일
I am working on a Simulink model where I need to identify all the "Signal Copy" blocks and replace them with direct connections between their source and destination blocks.
However, I am having trouble finding these blocks using the 'find_system' function.
signalCopies = find_system(model, 'BlockType', 'SignalCopy');
Unfortunately, this command returns nothing, even though there are "Signal Copy" blocks present in the model.

답변 (1개)

halleyhit
halleyhit 2024년 6월 20일
Hi Azeddine, you may try some code like
get_param(gcb,'BlockType')
to get the block type. I find it should be 'SignalConversion', rather than "SignalCopy"

카테고리

Help CenterFile Exchange에서 Prepare Model Inputs and Outputs에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by