Difference between revisions of "Changing the Speed of a Simulation"

From Flowcode Help
Jump to navigationJump to search
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
<sidebar>Sidebar: Flowcode Help Overview:Simulation</sidebar>
 
 
[[File:SimulationSpeed.png|right]]
 
[[File:SimulationSpeed.png|right]]
 
[[File:Simulation debugger.png|right]]
 
[[File:Simulation debugger.png|right]]
Line 5: Line 4:
 
'''Simulation speed'''
 
'''Simulation speed'''
  
Simulation speeds can vary from 0.25 Hz (or one simulation every 4 seconds) to 1000Hz (or one simulation every 0.001 seconds). This can be selected from the drop down options, or from the  
+
Simulation speeds can vary from 0.25 Hz (or one simulation every 4 seconds) to 1000Hz (or one simulation every 0.001 seconds). This can be selected from the drop down options, or from the slider bar as seen in the Simulation Debugger window. When adjusting the simulation speed with the slider bar, you should note that the slowest speed is when the bar is towards the right hand side.
  
 
+
In 'Normal mode' Flowcode does not update the variables, call stack and microcontroller views whilst it is running, but any external component views do get updated. The normal speed is the default setting, and allows the simulation to at a good speed yet allowing the graphics to maintain a good refresh speed for animations etc.
In addition, you can ask Flowcode to simulate the flowchart at normal speed or as fast as possible. When this happens, Flowcode does not update the variables, call stack and microcontroller views whilst it is running but any external component views do get updated. The normal speed setting allows the simulation to at a good speed yet allowing the graphics to maintain a good refresh speed for animations etc. The as fast as possible speed setting allows the simulation code to run at max speed by backing off the graphics routines to allow for pure number crunching programs to run as fast as it can. The as fast as possible setting should be avoided in most cases to allow the panels to react correctly to animations etc. The default setting for a new program is normal speed.
 
 
 
 
 
'''Configuration information'''
 
 
 
Select the 'Configure' tab from within the 'Project Options' window which can be accessed from the 'Build' menu (Build > Project Options > Configure) to open the chip download configuration window.
 
 
 
 
 
A number of options are available that allow you to change download parameters. For details on the various options see [[Configuring the Chip]].
 
  
  

Latest revision as of 08:35, 2 July 2019

SimulationSpeed.png
Simulation debugger.png

Simulation speed

Simulation speeds can vary from 0.25 Hz (or one simulation every 4 seconds) to 1000Hz (or one simulation every 0.001 seconds). This can be selected from the drop down options, or from the slider bar as seen in the Simulation Debugger window. When adjusting the simulation speed with the slider bar, you should note that the slowest speed is when the bar is towards the right hand side.

In 'Normal mode' Flowcode does not update the variables, call stack and microcontroller views whilst it is running, but any external component views do get updated. The normal speed is the default setting, and allows the simulation to at a good speed yet allowing the graphics to maintain a good refresh speed for animations etc.


Clock Speed (Hz)

Note: The Clock Speed option refers only to the speed of your hardware oscillator circuit. Changing this value will not alter the simulation speed.