Main Content

systemcomposer.profile.Profile.closeAll

Close all open profiles

    Description

    systemcomposer.profile.Profile.closeAll force closes all open profiles without saving and deletes them from the workspace.

    Tip

    Use close to close one open profile.

    example

    Examples

    collapse all

    Create a profile for latency characteristics and save it.

    profile = systemcomposer.profile.Profile.createProfile("LatencyProfile");
    
    latencybase = profile.addStereotype("LatencyBase");
    latencybase.addProperty("latency",Type="double");
    latencybase.addProperty("dataRate",Type="double",DefaultValue="10");
    
    connLatency = profile.addStereotype("ConnectorLatency",...
    Parent="LatencyProfile.LatencyBase");
    connLatency.addProperty("secure",Type="boolean");
    connLatency.addProperty("linkDistance",Type="double");
    
    nodeLatency = profile.addStereotype("NodeLatency",...
    Parent="LatencyProfile.LatencyBase");
    nodeLatency.addProperty("resources",Type="double",DefaultValue="1");
    
    portLatency = profile.addStereotype("PortLatency",...
    Parent="LatencyProfile.LatencyBase");
    portLatency.addProperty("queueDepth",Type="double");
    portLatency.addProperty("dummy",Type="int32");
    
    profile.save

    Close all open profiles and attempt to inspect one.

    systemcomposer.profile.Profile.closeAll
    profile
     profile = 
    
      handle to deleted Profile

    More About

    collapse all

    Version History

    Introduced in R2019a