<< fmiCompletedIntegratorStep fmu_wrapper fmiFreeModelInstance >>

fmu_wrapper >> fmu_wrapper > fmiEventUpdate

fmiEventUpdate

Get an occurred event.

Calling Sequence

eventInfo = fmiEventUpdate(instance, intermediateResults)

Arguments

instance

tlist, an instance of a model.

intermediateResults

boolean, intermediateResults = %t or %f.

callEventUpdate

mlist, an information about an event. For more details see fmiInitialize.

Description

fmiEventUpdate is the function that is called after time, state or step event occurred. This function returns with eventInfo (for details see function fmiInitialize). If intermediateResults = false, the function returns once new consistent state has been found and the integration can be restarted. If the argument is true, then the function returns for every event iteration that is performed internally, in order to allow to get result variables after every iteration with the fmiGetXXX functions above. The function has to be called successively then until eventInfo->iterationConverged = true and has to return the final status of eventInfo->stateValueReferencesChanged and of eventInfo->stateValuesChanged.

See Also


Report an issue
<< fmiCompletedIntegratorStep fmu_wrapper fmiFreeModelInstance >>