Block State and Work Vector Functions

LibBlockContinuousState(ucv, lcv, idx)

Returns a string corresponding to the specified block continuous state (CSTATE) element.

See LibBlockContinuousState in matlabroot/rtw/c/tlc/lib/blocklib.tlc.

LibBlockContinuousStateDerivative(ucv, lcv, idx)

Returns a string corresponding to the specified block continuous state (CSTATE) element.

See also LibBlockDiscreteState.

See LibBlockContinuousStateDerivative in matlabroot/rtw/c/tlc/lib/blocklib.tlc.

LibBlockContStateDisabled(ucv, lcv, idx)

Returns a string corresponding to the specified block continuous state (CSTATE) element.

See also LibBlockDiscreteState.

See LibBlockContStateDisabled in matlabroot/rtw/c/tlc/lib/blocklib.tlc.

LibBlockDWork(dwork, ucv, lcv, idx)

Returns a string corresponding to the specified block dwork element. The last input argument is overloaded to handle complex dworks.

idx = "re3" — Returns the real part of element 3 if dwork is complex, otherwise returns element 3.

idx = "im3" — Returns the imaginary part of element 3 if dwork is complex, otherwise returns "".

idx = "3" — Returns the complex container of element 3 if dwork is complex, otherwise returns element 3.

If either ucv or lcv is specified (i.e., it is not equal to "") then the index part of the last input argument (sigIdx) is ignored.

See LibBlockDWork in matlabroot/rtw/c/tlc/lib/blocklib.tlc.

LibBlockDWorkAddr(dwork, ucv, lcv, idx)

Returns a string corresponding to the address of the specified block dwork element.

See LibBlockDWorkAddr in matlabroot/rtw/c/tlc/lib/blocklib.tlc.

LibBlockDWorkDataTypeId(dwork)

Returns the data type ID of the specified block dwork.

See LibBlockDWorkDataTypeId in matlabroot/rtw/c/tlc/lib/blocklib.tlc.

LibBlockDWorkDataTypeName(dwork, reim)

Returns the data type name of the specified block dwork.

See LibBlockDWorkDataTypeName in matlabroot/rtw/c/tlc/lib/blocklib.tlc.

LibBlockDWorkIsComplex(dwork)

Returns 1 if the specified block dworkis complex. Returns 0 otherwise.

See LibBlockDWorkIsComplex in matlabroot/rtw/c/tlc/lib/blocklib.tlc.

LibBlockDWorkName(dwork)

Returns the name of the specified block dwork.

See LibBlockDWorkName in matlabroot/rtw/c/tlc/lib/blocklib.tlc.

LibBlockDWorkStorageClass(dwork)

Returns the storage class of the specified block dwork.

See LibBlockDWorkStorageClass in matlabroot/rtw/c/tlc/lib/blocklib.tlc.

LibBlockDWorkStorageTypeQualifier(dwork)

Returns the storage type qualifier of the specified block dwork.

See LibBlockDWorkStorageTypeQualifier in matlabroot/rtw/c/tlc/lib/blocklib.tlc.

LibBlockDWorkUsedAsDiscreteState(dwork)

Returns 1 if the specified block dwork is used as a discrete state, returns 0 otherwise.

See LibBlockDWorkUsedAsDiscreteState in matlabroot/rtw/c/tlc/lib/blocklib.tlc.

LibBlockDWorkWidth(dwork)

Returns the width of the specified block dwork.

See LibBlockDWorkWidth in matlabroot/rtw/c/tlc/lib/blocklib.tlc.

LibBlockDiscreteState(ucv, lcv, idx)

Returns a string corresponding to the specified block discrete state (DSTATE) element.

See LibBlockDiscreteState in matlabroot/rtw/c/tlc/lib/blocklib.tlc.

LibBlockIWork(definediwork, ucv, lcv, idx)

Returns a string corresponding to the specified block IWORK element. See LibBlockRWork.

See LibBlockIWork in matlabroot/rtw/c/tlc/lib/blocklib.tlc.

LibBlockMode(ucv, lcv, idx)

Returns a string corresponding to the specified block MODE element.

See LibBlockMode in matlabroot/rtw/c/tlc/lib/blocklib.tlc.

LibBlockNonSampledZC(ucv, lcv, NSZCIdx)

Returns a string corresponding to the specified block NSZC.

LibBlockNonSampledZC returns the appropriate element for the nonsampled zero-crossing state based on ucv, lcv, and NSZCIdx.

Arguments

ucv — User control variable string

lcv — Loop control variable string

NSZCIdx — Nonsampled zero-crossing index

See LibBlockNonSampledZC in matlabroot/rtw/c/tlc/lib/blocklib.tlc.

LibBlockPWork(definedpwork, ucv, lcv, idx)

Returns a string corresponding to the specified block PWORK element. See LibBlockRWork.

See LibBlockPWork in matlabroot/rtw/c/tlc/lib/blocklib.tlc.

LibBlockRWork(definedrwork, ucv, lcv, idx)

Returns a string corresponding to the specified block RWORK element. The first argument, definedrwork, is a symbol defined in the mdlRTW routine of the C MEX file with code like:

ssWriteRTWWorkVect([...], "RWork", [...], "MyRWorkName", [...])

Alternatively, if no such RWork defines have been made, definedrwork is ignored and the raw RWork vector is accessed. In this case, all uses in a loop rolling context are disallowed.

See LibBlockRWork in matlabroot/rtw/c/tlc/lib/blocklib.tlc.

LibBlockZCSignalValue(ucv, lcv, zcsIdx, zcElIdx)

Purpose

Returns a string corresponding to the specified block ZCSignalValue

Arguments

:

ucv

User control variable string.

lcv

Loop control variable string.

zcsIdx

zc signal Idx

zcElIdx

Idx of zc signal element in the zc signal

Description

LibBlockZCSignalValue returns the appropriate element for the zero crossing state based on ucv, lcv, and zcsIdx.

See LibBlockZCSignalValue in matlabroot/rtw/c/tlc/lib/blocklib.tlc.

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS