Writing S-Functions Previous page   Next Page

Obsolete Macros

The following macros are obsolete. Each obsolete macro should be replaced with the specified macro.

Obsolete Macro
Replace With
ssGetU(S), ssGetUPtrs(S)

ssGetInputPortSignalPtrs(S,port)

ssGetY(S)

ssGetOutputPortRealSignal(S,port)

ssGetX(S)

ssGetContStates(S), ssGetRealDiscStates(S)

ssGetStatus(S)

Normally not used, but ssGetErrorStatus(S) is available.

ssSetStatus(S,msg)

ssSetErrorStatus(S,msg)

ssGetSizes(S)

Specific call for the wanted item (i.e., ssGetNumContStates(S))

ssGetMinStepSize(S)

No longer supported.

ssGetPresentTimeEvent(S,sti)

ssGetTaskTime(S,sti)

ssGetSampleTimeEvent(S,sti)

ssGetSampleTime(S,sti)

ssSetSampleTimeEvent(S,t)

ssSetSampleTime(S,sti,t)

ssGetOffsetTimeEvent(S,sti)

ssGetOffsetTime(S,sti)

ssSetOffsetTimeEvent(S,sti,t)

ssSetOffsetTime(S,sti,t)

ssIsSampleHitEvent(S,sti,tid)

ssIsSampleHit(S,sti,tid)

ssGetNumInputArgs(S)

ssGetNumSFcnParams(S)

ssSetNumInputArgs(S, numInputArgs)
ssSetNumSFcnParams(S,numInputArgs)
ssGetNumArgs(S)
ssGetSFcnParamsCount(S)
ssGetArg(S,argNum)

ssGetSFcnParam(S,argNum)

ssGetNumInputs

ssGetNumInputPorts(S) and ssGetInputPortWidth(S,port)

ssSetNumInputs

ssSetNumInputPorts(S,nInputPorts) and ssSetInputPortWidth(S,port,val)

ssGetNumOutputs

ssGetNumOutputPorts(S) and ssGetOutputPortWidth(S,port)

ssSetNumOutputs

ssSetNumOutputPorts(S,nOutputPorts) and ssSetOutputPortWidth(S,port,val)


Previous page  Converting Level 1 C MEX S-Functions to Level 2 Creating Ada S-Functions Next page

© 1994-2005 The MathWorks, Inc.