Main Content

extmodeSimulationComplete

Check that external mode simulation is complete

Description

example

simComplete = extmodeSimulationComplete(); during an external mode simulation, checks whether the model simulation time has reached the final simulation time specified by the command-line '-tf' option or the Simulink® configuration parameter, StopTime.

Use this function with other external mode functions to enable communication between Simulink and the target application during an external mode simulation.

Examples

Set Up External Mode Communication

For a pseudo-code example that shows how you can provide external mode communication by using the function with related functions, see External Mode Abstraction Layer.

Output Arguments

collapse all

true if model simulation time has reached the specified final simulation time. Otherwise, returns false.

Version History

Introduced in R2018a