HQP  1.9.6
Hxi_MEX_SFunction.h File Reference

Interface to a Simulink(R) S-function given as binary MEX object. More...

#include "simstruc.h"
Include dependency graph for Hxi_MEX_SFunction.h:

Macros

#define HXI_MEX_S_FUNCTION
 Avoid multiple inclusion. More...
 
Unsupported macros

Disable macros that are critical for memory management and must not be used.

#define ssSetRWork(S, rwork)   ssSetRWork_cannot_be_used_with_Hxi_MEX_SFunction
 
#define ssSetPWork(S, pwork)   ssSetPWork_cannot_be_used_with_Hxi_MEX_SFunction
 
#define ssSetIWork(S, iwork)   ssSetIWork_cannot_be_used_with_Hxi_MEX_SFunction
 
#define ssSetTPtr(S, tptr)   ssSetTPtr_cannot_be_used_with_Hxi_MEX_SFunction
 

Functions

int_T ssSetSFcnParamsCount (SimStruct *S, int_T n)
 Redefine ssSetSFcnParamsCount to allocate memory for mxArray pointers.
 
SimStruct * Hxi_MEX_SimStruct_create ()
 Create a MEX SimStruct.
 
void Hxi_MEX_SimStruct_destroy (SimStruct *S)
 Free memory of MEX SimStruct.
 
void Hxi_MEX_SFunction_init (SimStruct *S)
 Initialize MEX S-function, including call to mdlInitializeSizes.
 

Detailed Description

Interface to a Simulink(R) S-function given as binary MEX object.

Several S-function methods are supported that redirect the call to the MEX object. Data is communicated through a SimStruct. The two functions Hxi_MEX_SimStruct_create and Hxi_MEX_SimStruct_destroy are provided for allocating and releasing a SimStruct. The function Hxi_MEX_SFunction_init calls the mexFunction.

(Simulink is a registered trademark of The MathWorks, Inc.)

rf, 07/14/2001

Macro Definition Documentation

#define HXI_MEX_S_FUNCTION

Avoid multiple inclusion.

define HXI_MEX_S_FUNCTION prior to inclusion of simstruc.h, in order to select the MEX version of SimStruct.