Main Content

isFMU

Determine component link to Functional Mockup Unit (FMU)

Since R2024b

    Description

    flag = isFMU(compObj) determines whether or not the component is a linked to an FMU.

    example

    Examples

    collapse all

    Determine whether or not the component is linked to an FMU.

    This component is not linked to an FMU.

    model = systemcomposer.createModel("archModel");
    systemcomposer.openModel("archModel");
    rootArch = get(model,"Architecture");
    newComponent = addComponent(rootArch,"newComponent");
    flag = isFMU(newComponent)
    flag =
    
      logical
    
       0

    This component is linked to an FMU.

    model = systemcomposer.createModel("archModel");
    systemcomposer.openModel("archModel");
    rootArch = get(model,"Architecture");
    newComponent = addComponent(rootArch,"newComponent");
    linkToFMU(newComponent,"actuator.fmu");
    flag = isFMU(newComponent)
    flag =
    
      logical
    
       1

    Input Arguments

    collapse all

    Output Arguments

    collapse all

    Whether component is reference, returned as 1 (true) or 0 (false).

    Data Types: logical

    More About

    collapse all

    Version History

    Introduced in R2024b