Difference between revisions of "Simulating Icons Step by Step"

From Flowcode Help
Jump to navigationJump to search
Line 7: Line 7:
 
'''Step Over'''
 
'''Step Over'''
  
To Step Over a macro select the Step Over option from the Debug menu or press the '''Shift + F8''' keys. Step Over works in the same way as Step Into, but with the following difference. When Step Over encounters a macro that contains a separate flowchart Step Over processes the whole macro instead of opening it and executing it step by step. In effect it steps over the flowchart.
+
To Step Over a macro select the Step Over option from the Debug menu or press the '''Shift+F8''' keys. Step Over works in the same way as Step Into, but with the following difference. When Step Over encounters a macro that contains a separate flowchart Step Over processes the whole macro instead of opening it and executing it step by step. In effect it steps over the flowchart.
  
  

Revision as of 14:52, 12 September 2013

<sidebar>Sidebar: Overview of Simulation</sidebar>

Gen Main Toolbar Simulation Labelled.png

Step Into

To simulate the flowchart, icon by icon, select the Step Into option from the Debug menu or press the F8 key. A red rectangle indicates the icon that is about to being executed. The variables, call stack and chip windows are updated on every step of the simulation. In addition, if there are external components attached to the microcontroller then their state is shown in the external component window.

Step Over

To Step Over a macro select the Step Over option from the Debug menu or press the Shift+F8 keys. Step Over works in the same way as Step Into, but with the following difference. When Step Over encounters a macro that contains a separate flowchart Step Over processes the whole macro instead of opening it and executing it step by step. In effect it steps over the flowchart.


Step Over is useful to avoid having to step through lengthy macros and allows the user to concentrate on other areas of the flowchart that may require their attention.

Gen Simulation Debugger Change Variable Value.png


Changing variables during Simulation

When simulating variable values can be changed from the Simulation Debugger window by clicking on the 'Value' box next to the variable name and then simply typing in a value.


If the ICD Mode is enabled in your Project Options then stepping into or over in the simulation will cause the ICD hardware to react accordingly. Changing variable values during the simulation will also work seamlessly with the ICD operation.