Difference between revisions of "C Code Simulation"
From Flowcode Help
Jump to navigationJump to search (Created page with "Flowcode can simulate C code inside of C Code icons by using the C Simulation button. The C Simulation button can be found on the main toolbar and via the DEBUG menu. [[File:...") |
|||
Line 11: | Line 11: | ||
Here is an example program that counts up and down in binary using Port A and a Combo Board component to show the LED signals. | Here is an example program that counts up and down in binary using Port A and a Combo Board component to show the LED signals. | ||
+ | |||
+ | {{Fcfile|BinaryCounterUsingCCode.fcfx|C Simulation Example}} | ||
[[File:CSim.jpg]] | [[File:CSim.jpg]] |
Revision as of 09:41, 10 May 2018
Flowcode can simulate C code inside of C Code icons by using the C Simulation button. The C Simulation button can be found on the main toolbar and via the DEBUG menu.
By default no C code will be simulated until the C Simulation button is enabled. C Code icons will simply be skipped from the simulator.
The C Simulation button is enabled when the button icon is highlighted by a bounding square.
Example
Here is an example program that counts up and down in binary using Port A and a Combo Board component to show the LED signals.
The C Simulation feature is similar to the C Code to Flowchart Conversion feature that converts C code into Flowchart icons.