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

回答(1 个)

Ayush Anand
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:
  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. 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.
You can refer to the following links for the same:
I hope this helps!

类别

Help CenterFile Exchange 中查找有关 Test Model Components 的更多信息

产品


版本

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by