Issues with Identifying "Signal Copy" Blocks in Simulink Model Using find_system
7 次查看(过去 30 天)
显示 更早的评论
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.
0 个评论
回答(1 个)
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"
0 个评论
另请参阅
类别
在 Help Center 和 File 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!