Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ XR Studio

The main_simulation file

  • Last UpdatedJan 24, 2023
  • 1 minute read

The main_simulation file is automatically loaded by the system in a simulation-based product such as the virtual plant.

It hosts three command callbacks related to entering and exiting the simulation. It is intended to be used primarily in a Kiosk-type product where the application moves between simulation and simulation set up, such as login, mission selection, PPE selection.

The callbacks are called when starting or stopping a simulation session. For example, using Exit option from the game menu.

Good practice

You can put commands related to the loading of a simulation in the main_simulation file, instead of into the The main_context file file, and bind them to the start_simulation_user command callback.

Code example

Code example for the main_simulation file.

<command name="reset_simulation_user">

<!-- CALLED WHEN SIMULATION RESETS -->

</command> <command name="start_simulation_user">

<!-- CALLED WHEN SIMULATION STARTS -->

</command> <command name="stop_simulation_user">

<!-- CALLED WHEN SIMULATION STOPS -->

</command>

In This Topic
Related Links
TitleResults for “How to create a CRG?”Also Available in