I am running a MATLAB script to update Stateflow library interfaces on a library that contains a graphical function set to be a "subchart". In this script, I create a "sfclipboard" object, grab the content from the current library, copy the content to the clipboard, and paste this to the new system that gets created by the script.
When I run the script on my library that contains a graphical function set to be a "subchart", I receive the following error message:
Error using Stateflow.Clipboard/copy
All objects must have the same subviewer
Error in update_library (line 168)
Clipboard.copy(AllObjects);
This seems like strange behavior since the subchart should be able to be copied without running into any issues through the clipboard object.
Best Answer