Documentation Center

  • Trial Software
  • Product Updates

Contents

ssGetRealDiscStates

Get a block's discrete state vector

Syntax

real_T *ssGetRealDiscStates(SimStruct *S) 

Arguments

S

SimStruct representing an S-Function block.

Returns

The discrete state vector as an array of real_T elements of length ssGetNumDiscStates(S).

Description

Same as ssGetDiscStates.

Languages

C, C++

Example

See the S-function dsfunc.cdsfunc.c used in sfcndemo_dsfuncsfcndemo_dsfunc and the S-function vsfunc.cvsfunc.c used in sfcndemo_vsfuncsfcndemo_vsfunc.

Was this topic helpful?