Programmatically turning on signal logging
7 次查看(过去 30 天)
显示 更早的评论
I'm having a problem with programmatically turning on signal logging.
Specifically, I do the following sequence of commands.
- 1.load_system([model name])
- 2.run code that takes a list of signals and finds them in the model and programmatically turns on logging (commands execute without error).
- 3. use find_system to get a list of handles for all logged signals (valid list is returned).
- 4.open_system([model name])
- 5.Navigate to logged signals - logged signals are not highlighted with the traditional icon
- 6. use find_system to get a list of handles for all logged signals - an empty list is returned
I'm not sure what would be causing the above behavior. If the above was occurring, I would expect set_param/get_param to not be successful.
As an additional point, if I open up the model to the correct block and then run my log signals script - the appropriate icons appear.
The problem appears to be associated with turning on the signals when he system is invisibly loaded in the background.
采纳的回答
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Event Functions 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!