
How I can find resolved simulink signal objects of a Simulink model and enable "Log Signal Data" option from command line?
6 ビュー (過去 30 日間)
古いコメントを表示
I am working on a huge simulink model. I want to log all resolved simulink signal objects for one simulation case and want to disable logging of these signal objects for another simulation case, programmatically.
Is there any way to do this from command line?
0 件のコメント
回答 (1 件)
Gayathri
2025 年 2 月 11 日
I understand that you are trying to log the signals from the command line. You can achieve this using the "Signal Logging Selector" functionality as shown below.
Simulink.SimulationData.signalLoggingSelector('simple.slx')
This command will open the "Simulink Signal Logging Selector" tab directly. You can then change the "Logging Mode" option to "Override Signals". Please make sure to log all the signals required in the model before proceeding with this step. This is to ensure that all the signals you require for logging appears in the "Simulink Signal Logging Selector" tab. The tab appears as shown below.

As seen in the screenshot, we can select and deselect the signals to be logged for the next simulation.
For more information on "Signal Logging Selector", please refer to the below documentation link.
Hope you find this information helpful!
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Prepare Model Inputs and Outputs についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!