Set Output Port Properties
TheSource.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...functionnum = getNumOutputsImpl(~) num = 1;endfunctionvarargout = isOutputFixedSizeImpl(~,~) varargout{1} = true;endfunctionvarargout = isOutputComplexImpl(~) varargout{1} = false;endfunctionvarargout = getOutputSizeImpl(~) varargout{1} = [1,1];endfunctionvarargout = getOutputDataTypeImpl(~) varargout{1} = 'double';end...end
For theDigitalRead
System object, the default values do not require modification.
In the next section, you willTest System Object.
See Also
Create a Digital Read Block|Specify the Initialization, Output, and Termination|Test System Object