classdef OutputFcn
% SLSIM.OUTPUTFCN is used to store an simulation callback for input values for a specified source.
%
%   oFcn = slsim.OutputFcn(FCN, NAMEVALUEARGS)
%   creates an SLSIM.OUTPUTFCN which specifies that the function handle FCN should be invoked
%   to process the output values of the signal source identified by NAMEVALUEARGS.
%   The function handle FCN is expected to have the following signature:
%       FCN(id, time, data)
%       id   : identifier of signal source which derives from slsim.SignalSource
%       time : simulation time at which the output value is produced
%       data : signal value
%   The return value of the function handle is ignored.
%
%   The signal source is specfied using name value pairs NAMEVALUEARGS, where names are a subset of
%   the properties of SLSIM.SIGNALSOURCE or its derived classes
%
% Example:
%   % Create a function to process signal values
%{   function  my_process_outputs_fcn(id, time, data)
%       if (id.Port == '1')
%           % process the output value here
%       end
%   end
%}
%   % Associate the callback with outport 1 of model
%   oFcn = slsim.OutputFcn(@my_process_outputs_fcn, Port='1');
%
%   See also SLSIM.INPUTFCN

 
% Copyright 2021 The MathWorks, Inc.

    methods
        function out=OutputFcn
        end

    end
    properties
        % SLSIM.OUTPUTFCN.DATA
        %
        % See also SLSIM.OUTPUTFCN
        Data;

        % SLSIM.OUTPUTFCN.FCN
        %
        % See also SLSIM.OUTPUTFCN
        Fcn;

    end
end
