Programmatically turning on signal logging
3 views (last 30 days)
Show older comments
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.
3 Comments
Accepted Answer
More Answers (0)
See Also
Categories
Find more on Event Functions in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!