This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Set Output Port Properties

The Source.m reference System object™ contains a common default implementation of the methods that define the block's output port properties.

methods (Access=protected)
    %% Define output properties
    ...
        
    function num = getNumOutputsImpl(~)
        num = 1;
    end
        
    function flag = isOutputSizeLockedImpl(~,~)
        flag = true;
    end
        
    function varargout = isOutputFixedSizeImpl(~,~)
        varargout{1} = true;
    end
        
    function flag = isOutputComplexityLockedImpl(~,~)
        flag = true;
    end
        
    function varargout = isOutputComplexImpl(~)
        varargout{1} = false;
    end
        
    function varargout = getOutputSizeImpl(~)
        varargout{1} = [1,1];
    end
        
    function varargout = getOutputDataTypeImpl(~)
        varargout{1} = 'double';
    end
        
    ...
end

For the DigitalRead System object, the default values do not require modification.

In the next section, you will Test System Object.

See Also

| |