Main Content

ssGetNeedAbsoluteTime

Check if the S-function block has registered that it requires absolute time

Since R2023b

Syntax

int_T ssGetNeedAbsoluteTime(SimStruct *S)

Arguments

S

SimStruct that represents an S-Function block.

Returns

An int_T value of 1 if the block requires absolute time and 0 if it does not require absolute time.

Description

Use to determine if the s-function block has registered that it requires absolute time.

Languages

C, C++

Examples

static void mdlOutputs( Simstruct *S, int_T tid)
{
   int_T isTimeAbs = ssGetNeedAbsoluteTime(S);

   if (isTimeAbs == 1)
   {
      ssPrintf("Using absolute time");
   }
}

Version History

Introduced in R2023b