1. Home
  2. Docs
  3. SmartConfig2.1
  4. 5.1 User defined
  5. 5.1.10 Simulation

5.1.10 Simulation

The Simulation tab allows the logical flow of a visual program to be tested without running it on the SmartSampler2. The flowchart does not need to be exported to code before starting a simulation.

The following controls are available:

  • Reset: Stops the simulation and returns it to the beginning of the program.
  • Step: Executes the next action only. Use this to inspect the program one action at a time.
  • Run: Executes the program continuously according to its configured flow.
  • Pause: Temporarily stops continuous execution at the current position.
Testing program execution in the Simulation tab.

The currently active action is highlighted on the canvas. When a jump is executed, its path is also highlighted, making it easier to follow loops and changes in execution order.

The Simulation tab additionally displays:

  • the currently active main program or sub-program;
  • the current user-defined and temporary values;
  • available pulse counters;
  • the simulated last-data string;
  • the current line and action;
  • a history of the actions executed during the simulation.

Use Step to examine conditional comparisons, jumps, sub-program activation, and return behaviour individually. Use Run to check the overall program sequence. Programs containing loops may continue running until Pause or Reset is selected.

The simulation verifies the logical program flow only. It does not operate connected hardware or confirm the physical behaviour of sensors, modules, outputs, telemetry, or power supplies.

How can we help?