I've got the full path name of a Scope block as it is returned by find_system(…), e.g. 'myModel/Scope1'.
In order to manipulate the corresponding Scope window using set(…), I need the handle of that window. Is there some way to call get_param('myModel/Scope1', unknownparameternamehere) to get that window handle?
What I already tried (but do not consider a solution):
(1) A workaround I'm currently using is to call set_param('myModel/Scope1','Open','On'), which sometimes makes that window the current figure, so I can use "gcf" afterwards to get the handle. But that doesn't work safely and also has unwanted side-effects.
(2) Using findobj(0,'type','figure','tag','SIMULINK_SIMSCOPE_FIGURE') to get an array of all Scope window handles doesn't help because afterwards I can't identify the Scope window in that array by its 'Name' field only: There might be 'myModel/Scope1' and 'myModel/sub/Scope1' or 'anotherModel/Scope1', so 'Name' is not unique.
Best Answer