Simulink turn off data logging
Show older comments
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.
Accepted Answer
More Answers (2)
Paul Smith
on 31 Jan 2019
4 votes
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
on 26 Jul 2019
0 votes
Turn this model into .mdl format
Open model in text
Find all "datalogging on", set it to off
Done!
3 Comments
Jun Yang
on 20 Nov 2023
this command works in a better way!
set_param(bdroot, 'InstrumentedSignals', [])
Herman Wong
on 7 Mar 2024
Edited: Herman Wong
on 7 Mar 2024
set_param(bdroot, 'InstrumentedSignals', []) --- awesome! Thanks Jun Yang!
Jinggang
on 9 Jul 2024
Thank u Jun Tang, it works!
Categories
Find more on Prepare Model Inputs and Outputs in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!