function strout=outlinestring(c)
%OUTLINESTRING returns a short description of the component
%   STROUT=OUTLINESTRING(C)

%   Copyright (c) 1997-2000 by The MathWorks, Inc.
%   $Revision: 1.8 $  $Date: 2000/03/23 19:37:44 $


if c.att.isForceOpen
   typeString='XY graphs & scope';
else
   typeString='XY graphs & open scope';
end

loopInfo=searchblocktype(c.zslmethods,typeString);

typeIndex=find(strcmp(loopInfo.contextCode,getparentloop(c)));
if ~isempty(typeIndex)
   typeIndex=typeIndex(1);
else
   typeIndex=length(loopInfo.contextCode);
end

strout=sprintf('Scope Snapshot - %s', loopInfo.contextName{typeIndex});