Simulink turn off data logging
显示 更早的评论
Hello ! I do have the following problem: I have a very big simuling model, with a lot of subsystems. In this model a lot of signal have already logged. I'm making a test environment to run this model, and I have to test the result of the simulation. I have to log only a few data, but in the model there are approximately 150 logged signal (and it's made the simulation much slower). So for that, in my test environment I'd like to unlog all of the signal, and turn on only witch are necessary for me.
采纳的回答
更多回答(2 个)
Paul Smith
2019-1-31
4 个投票
I had a similar issue, I ended up modifying to this though:-
pH = find_system('Your Model name','LookUnderMasks','all','FindAll', 'on', 'DataLogging', 'on');
'Type', 'Port'
Having type and port in the search misses other potentially logable terms.
Zhu
2019-7-26
0 个投票
Turn this model into .mdl format
Open model in text
Find all "datalogging on", set it to off
Done!
3 个评论
Jun Yang
2023-11-20
this command works in a better way!
set_param(bdroot, 'InstrumentedSignals', [])
Herman Wong
2024-3-7
编辑:Herman Wong
2024-3-7
set_param(bdroot, 'InstrumentedSignals', []) --- awesome! Thanks Jun Yang!
Jinggang
2024-7-9
Thank u Jun Tang, it works!
类别
在 帮助中心 和 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!