Main Content

systemcomposer.allocation.editor

Open allocation editor

Since R2020b

    Description

    systemcomposer.allocation.editor opens the Allocation Editor.

    example

    systemcomposer.allocation.editor(allocSet) opens the Allocation Editor and selects the allocation set object allocSet.

    systemcomposer.allocation.editor(allocSetName) opens the Allocation Editor and selects the allocation set allocSetName.

    Examples

    collapse all

    Create two new models with one component each.

    mSource = systemcomposer.createModel("Source_Model_Allocation");
    systemcomposer.openModel("Source_Model_Allocation");
    sourceComp = addComponent(get(mSource,"Architecture"),"Source_Component");
    mTarget = systemcomposer.createModel("Target_Model_Allocation");
    systemcomposer.openModel("Target_Model_Allocation");
    targetComp = addComponent(get(mTarget,"Architecture"),"Target_Component");

    Create an allocation set named MyNewAllocation.

    allocSet = systemcomposer.allocation.createAllocationSet("MyNewAllocation",...
         "Source_Model_Allocation","Target_Model_Allocation");

    Save the allocation set.

    save(allocSet)

    Open the Allocation Editor.

    systemcomposer.allocation.editor

    Input Arguments

    collapse all

    Allocation set, specified as a systemcomposer.allocation.AllocationSet object.

    Allocation set name, specified as a character vector or string.

    Example: systemcomposer.allocation.editor("PhysicalAllocations")

    Data Types: char | string

    More About

    collapse all

    Version History

    Introduced in R2020b