Simulink Real-Time missing signals

조회 수: 4 (최근 30일)
Johannes Bilz
Johannes Bilz 2017년 7월 19일
답변: Johannes Bilz 2017년 7월 25일
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.

답변 (2개)

Jon Lobo
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.

Johannes Bilz
Johannes Bilz 2017년 7월 25일
Hi thank you for your answer! In fact I added the unity gain block on the right (VibroOutMonitor) just for monitoring the signal. Unfortunately, the output of this gain block is although not visible. The only way I found was adding a FileScope and connecting all the outputs to the scope. This gave me all the signals but required adding the scope and recompiling.

카테고리

Help CenterFile Exchange에서 Target Computer Setup에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by