I am using Legacy Code Tool to incorporate an existing C macro into a C S-Function. When I specify the name of the macro in the OutputFcnSpec in the following manner:
DO.OutputFcnSpec = 'DigitalOutputSignal_Set( u1, u2)';
the following error is returned:
??? Index exceeds matrix dimensions. Error in ==> slprivate at 12 [varargout{1:nargout}] = feval(function_name, varargin{1:end}); Error in ==> legacy_code at 26 slprivate('lct_gen_sfcn_cmex', varargin{:}); Error in ==> Digital_Interfaces at 50 legacy_code('sfcn_cmex_generate', DO)
Best Answer