Testing in Simulation Mode

Use simulation mode for testing and debugging your program when you do not have a physical target device. In this mode, the application is started on a simulated device.

The command is available only when you are logged out.

Requirement: You program contains no errors (compiler error messages or compile errors) and you are not logged in.

  1. Activate simulation mode as follows:

    • Click Online ‣ Simulation , or
    • Right-click the controller in the device tree and click Simulation .

    ⇒ The name of the controller in the device tree is displayed in italics. In the status line, “Simulation” appears highlighted in red. The Simulation command is selected in the main menu.

  2. Click Online ‣ Login .

  3. When logging in for the first time with the active application, you will be prompted whether the application “Sim.<device name>.<application name>” should be created and loaded. Click Yes to confirm.

    ⇒ The application is logged onto the controller. This is marked in the device tree by a warning symbol () in front of the controller.

  4. Now you can check and correct the program flow with the commands provided in the main menu in Debug .

  5. Log out from the controller and end the simulation mode.

See also