Main Content

setSmartConnectPolicy

Set smart connect policy

Since R2025a

    Description

    setSmartConnectPolicy(arch,policy) sets a custom port connection policy.

    example

    Examples

    collapse all

    This example shows how to set a smart connect policy and then get the smart connect policy.

    model = systemcomposer.loadModel("mSmartConnect");
    setSmartConnectPolicy(model.Architecture,"simpleCustomConnect");
    policy = getSmartConnectPolicy(model.Architecture)
    

    Input Arguments

    collapse all

    Architecture, specified as a systemcomposer.arch.Architecture object.

    Smart connect policy, specified as a character vector or string.

    Data Types: char | string

    More About

    collapse all

    Version History

    Introduced in R2025a