Simulink Real-Time missing signals
3 views (last 30 days)
Show older comments
Johannes Bilz on 19 Jul 2017
Answered: Johannes Bilz on 25 Jul 2017
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.
Jon Lobo on 24 Jul 2017
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.
Find more on Target Computer Setup in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!