Main Content

setMaximum

Set maximum for signal interface element

    Description

    example

    setMaximum(interfaceElem,maximum) sets the maximum for the designated signal interface element.

    Examples

    collapse all

    Create a model named 'archModel', add an interface, create an interface element with a name 'x', and set the maximum for the interface element '5.72'.

    modelName = 'archModel';
    arch = systemcomposer.createModel(modelName); % Create model
    
    interface = arch.InterfaceDictionary.addInterface('interface'); % Add interface
    elem = interface.addElement('x'); % Create interface element
    
    setMaximum(elem,'5.72'); % Set maximum for interface element

    Input Arguments

    collapse all

    Interface element, specified as a systemcomposer.interface.SignalElement object.

    Maximum of interface element, specified as a character vector.

    Data Types: char

    Introduced in R2019a