Customization > Automation Interface > Functions > For System Simulations > Animation Functions > EnableOpenDiagrams function (automation interface)
  
EnableOpenDiagrams function (automation interface)
Syntax:
EnableOpenDiagrams
Enables Open Diagram Mode in Modeler. When enabled, State Diagrams are opened or get the focus as necessary to follow a simulation.