Simulink Real-Time missing signals
10 次查看(过去 30 天)
显示 更早的评论
Hi everyone, I recently came across the folowing Problem using Simulink Realtime: When I compile and run a model, usualy all the signals (outputs of Simulink-Blocks) are listed in the Real-Time Explorer and can be monitored on the host-PC. In my demo model (screenshot appended) the outputs of the "Bandpass Filter 1", "Notch-Peak Filter 1", "Lowpass Filter" and "VibroOutMonitor" are not listed in the Real-Time Explorer and cannot be monitored (MATLAB-command getsignalid returns an empty value). Is there a way to enshure that all signals occuring in a model can be monitored using the Real-Time Explorer or the getsignalid/getsignal command? Adding a dedicated Host-Scope to the model monitoring the affected signals resolves the problem in principle, but monitoring signals without the need to recompile is a handy debug-feature.
0 个评论
回答(2 个)
Jon Lobo
2017-7-24
Put a unity gain (gain block with value of 1) in between those blocks and name that block as it makes sense to you (BP Filter, LP Filter etc). This has to do with how the filter blocks exist (network of other blocks) and how the code is generated. You should be able to see the signal that comes out of the gain block.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Target Computer Setup 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!