Main Content

fmudialog.createTypeObject

Generates enumeration and bus objects required for FMU input or output ports

Since R2020b

    Description

    fmudialog.createTypeObject(currentBlock) generates all the enumeration classes and bus objects required for the input and output ports of the FMU.

    example

    fmudialog.createTypeObject(currentBlock, Name,Value) generates all the enumeration classes and bus objects required for the input and output ports of the FMU with additional options specified by one or more Name,Value pair arguments using any of the previous syntaxes.

    Examples

    collapse all

    Generate all the enumeration classes and bus objects for the required inputs and outputs for an FMU in the current workspace.

    fmudialog.createTypeObject(gcb)

    Input Arguments

    collapse all

    Current block for which to create all required FMU bus objects.

    Data Types: char | string

    Name-Value Arguments

    Specify optional pairs of arguments as Name1=Value1,...,NameN=ValueN, where Name is the argument name and Value is the corresponding value. Name-value arguments must appear after other arguments, but the order of the pairs does not matter.

    Example: fmudialog.createTypeObject(gcd, 'CreateClassDefintionTo', 'Session') generates the required bus objects and enumeration classes for the FMU and saves the class definitions the current MATLAB workspace.

    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.

    Data Types: char | string

    Specify whether to use enumeration in the generated bus objects. Enumeration types are treated as int32 if this is set as false.

    Data Types: char | string

    Version History

    Introduced in R2020b