- Enable signal logging: First, make sure that signal logging is enabled for the signals you want to log. You can do this by right-clicking on the signal line, selecting "Signals & Ports," and then checking the "Log Signal Data" option. This should be done for both the outer and inner subsystems.
- Set logging configuration: Check the logging configuration settings for SIL simulation. To do this, go to the Simulation tab in the Simulink Editor and click on "Simulation > Model Configuration Parameters." In the "Data Import/Export" section, ensure that the "Signal logging" option is set to "All" or "Logged" to enable logging for all or selected signals, respectively.
- Check signal scoping: Verify that the signals you want to log are visible outside the inner subsystem. By default, signals are scoped to the subsystem they are created in. To make a signal visible outside the subsystem, you can use Outport blocks or enable signal propagation using the "Signal Name Resolution" option in the Model Configuration Parameters.
- Ensure proper signal connectivity: Confirm that the signals you want to log are properly connected within the inner subsystem. If a signal is not connected to any output port or not being used within the subsystem, it may not be logged during SIL testing.
- Check for SIL-specific limitations: Keep in mind that there might be specific limitations or differences in behavior between Model-in-the-Loop (MIL) and SIL testing. For example, in some cases, certain blocks or features may not be supported in SIL simulation.
is it possible to log signals in inner subsystem for SIL tests ?
5 次查看(过去 30 天)
显示 更早的评论
Hello everybody
is it possible to log signals in inner subsystems for SIL tests
when i do it for MIL tests it works fine but when i switch to SIL testing it does not work
thank you
0 个评论
回答(1 个)
Ayush Anand
2023-9-5
Hi Elias,
I understand you want to know if it is possible to log signals in inner subsystems for SIL tests. It is possible, however, there are a few considerations to keep in mind to ensure proper signal logging within inner subsystems during SIL testing:
You can refer to the following links for the same:
1) https://in.mathworks.com/help/ecoder/ug/configuring-a-sil-or-pil-simulation.html#bsf5v22.br74o58-1 (to read more on how to configure and run SIL simulation)
2) https://in.mathworks.com/matlabcentral/answers/471302-internal-signal-logging-during-sil-simulation (Answer on internal signal logging in SIL simulation)
I hope this helps!
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Test Model Components 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!