Main Content

Simulink.fmuexport.GetExportableVariableList

Get the list of exportable inputs, outputs, parameters, and internal variables for a model that is to be exported as an FMU

Since R2020a

    Description

    example

    exportableList = Simulink.fmuexport.GetExportableVariableList(model, variableType, format) returns a list of exportable variables specified by variableType for a model that is to be exported as an FMU.

    Examples

    collapse all

    Get the list of parameters that can be exported when a model will be exported to an FMU.

    parameterList = Simulink.fmuexport.GetExportableVariableList('model','parameter','flat')

    Input Arguments

    collapse all

    Name of the model to be exported to an FMU, specified as a string or character vector.

    Data Types: char | string

    Specify the type of variable for which you want the list of exportable members. Set the value for this argument as 'input' for input signals, 'output' for output signals, 'parameter' for parameters, and 'internal' for internal variables.

    Data Types: char | string

    Set this value as 'struct' to get the root node of structured variables in the list. For example, for a Simulink.Bus input signal InputBus with elements Input1 and Input2, only InputBus will be listed.

    Set this value as 'flat' to get a the constituent elements of a structured variable in the list. For example, for a Simulink.Bus input signal InputBus with elements Input1 and Input2, InputBus.Input1 and InputBus.Input2 will be listed.

    Data Types: char | string

    Output Arguments

    collapse all

    Returns a cell array containing the list of all the exportable variables.

    Data Types: cell

    Version History

    Introduced in R2020a