C_GetNumOfSamples

Call C_GetNumOfSamples to find out how many samples there are in a simulation period. This is needed to allocate memory for the results of calls to C_GetSampleTimes, C_GetTimeHistory2 and C_GetMultipleTimeHistories.

int C_GetNumOfSamples(

TOrcFxAPIHandle ModelHandle,

const TPeriod *lpPeriod,

int *lpStatus

);

Parameters

ModelHandle (IN)

The handle of the model containing the simulation.

lpPeriod (IN)

Points to a TPeriod variable which specifies the period of the simulation over which results are to be extracted.

lpStatus (OUT)

Points to a variable in which the status result for the function call will be returned.

Return Value

The number of samples present in each time history for the simulation loaded in this model.

See also

TPeriod, C_GetSampleTimes, C_GetTimeHistory2, C_GetMultipleTimeHistories.