Main Content

setMinimum

Set minimum for value type

Since R2021b

    Description

    setMinimum(valueType,minimum) sets the minimum 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 minimum for the value type as 0.

    airSpeedType.setMinimum("0")

    Input Arguments

    collapse all

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

    Minimum, 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