How can I start data logging for a special signal at a special time with matlab code?
11 次查看(过去 30 天)
显示 更早的评论
I want to log a signal in simulink for a time x. I am interested for a special point of time as soon a definded error value is reached. Is there any possibility to control the signal logging start time via matlab code. So that e.g. the signal logging begins at simulation time 3600 seconds? Backround is that the simulation runs very long and the needed memory for the logged signal is limited. So I want to log the signal later and ignore the time area which os not important for my analysis. Thank you in advance.
0 个评论
采纳的回答
Rishi
2024-1-1
Hi Melanie,
I understand that you want to know how to log a Simulink signal for a specific time range.
This can be done by setting the 'Logging Intervals' parameter in the model configuration parameters 'Data Import/Export' pane. The logging intervals are specified as an 'n' by 2 matrix, where 'n' is the number of intervals. The number in the first column indicates the start of the logging interval, and the number in the second column indicates the end of the interval.
You can learn more about Specifying Logging Intervals from the following documentation;
Additional information about Logging Intervals can be found from this documentation:
You can also refer to the following example to learn how to set the parameters while simulating your model:
Hope this helps!
1 个评论
更多回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Save Run-Time Data from Simulation 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!