Main Content

setMaximum

Set maximum for value type

Since R2021b

    Description

    setMaximum(valueType,maximum) sets the maximum for the designated value type.

    example

    Examples

    collapse all

    Create a model archModel.

    modelName = "archModel";
    arch = systemcomposer.createModel(modelName);
    systemcomposer.openModel(modelName);

    Add a value type airSpeed to the dictionary of the model.

    airSpeedType = arch.InterfaceDictionary.addValueType("airSpeed");

    Set the maximum for the value type as 100.

    airSpeedType.setMaximum("100")

    Input Arguments

    collapse all

    Value type, data element, or function argument, specified as a systemcomposer.ValueType, systemcomposer.interface.DataElement, or systemcomposer.interface.FunctionArgument object.

    Maximum, specified as a character vector or string.

    Data Types: char | string

    More About

    collapse all

    Version History

    Introduced in R2021b

    See Also

    Functions

    Objects

    Blocks

    Tools