Main Content

fmudialog.createEnumType

Generate all enumeration classes required for FMU input or output ports

Since R2020b

    Description

    fmudialog.createEnumType(currentBlock) generates all the enumeration classes required for input or output ports of the specified FMU.

    example

    fmudialoig.createEnumType(currentBlock,'CreateClassDefinitionTo',classLocation) creates all the enumeration class required for input or output ports of the FMU and saves them to a file or workspace as specified.

    Examples

    collapse all

    Generate all the enumeration classes for the required inputs and outputs for an FMU in a file.

    fmudialog.createEnumType(gcb)

    Input Arguments

    collapse all

    Current block for which to create all required FMU enumeration classes.

    Data Types: char | string

    Use 'File' to specify that the generated enumeration class is to be saved to a file in the current directory or specify 'Session' to save the generated enumeration class in the current MATLAB workspace.

    Use the Simulink.findIntEnumType to get the definition of enumeration data types.

    Data Types: char | string

    Version History

    Introduced in R2020b