Motorola DSP Developer's Kit    

Output Objects

MOTDSP_Output objects are not used in S-functions. Instead, you create pointers to the output ports using specific Simulink macros.

You then "fill" these output signals with data returned from execution of the assembly or C program object file.

For a real array

For real and imaginary parts of a single value complex output

For real and imaginary parts of a complex array output

See Importing Data to DSP Simulator for more information on how to access the data returned from the simulator.

Validation:.   Inside the try block, a MOTDSP_FuncVar object is instantiated with the number of input ports and output ports as arguments. Use the supplied MOTDSP_FUNCVAR(NUM_INPORTS,NUM_OUTPORTS) macro. This class is used to validate access to input/output and create default or initial conditions.

Compared with MATLAB MEX-files, no MOTDSP_Config class is required for S-functions, since an argument list is not parsed. Instead, arguments are obtained from a parameter dialog box.


 Input Objects S-Function Blocks