Difference between revisions of "Exercise - Creating a Flowchart"
From Flowcode Help
Jump to navigationJump to searchJohnVerrill (talk | contribs) |
JohnVerrill (talk | contribs) |
||
Line 1: | Line 1: | ||
+ | [[File:Gen_Running_Flowcode_Startup_Selection.png||250px|right]] | ||
The task is to produce a Flowcode flowchart that lights a lamp for ten seconds when a switch is pressed.<br /> | The task is to produce a Flowcode flowchart that lights a lamp for ten seconds when a switch is pressed.<br /> | ||
Although it may not be realistic to use a microcontroller in such a straight-forward application, it illustrates the technique of producing a Flowcode program.<br /> | Although it may not be realistic to use a microcontroller in such a straight-forward application, it illustrates the technique of producing a Flowcode program.<br /> | ||
The program itself may form part of a bigger program. | The program itself may form part of a bigger program. | ||
+ | |||
* Open Flowcode. | * Open Flowcode. | ||
− | * On the Startup screen, click on 'New embedded project'. (See [[Opening Flowcode]] | + | * On the Startup screen, click on 'New embedded project'. (See [[Opening Flowcode]] |
+ | |||
+ | |||
+ | |||
+ | [[File:Project_Options_Target_16F1937.png|right|250px]] | ||
+ | |||
+ | |||
+ | |||
Line 10: | Line 19: | ||
: (Click on the link for a full explanation of all the options available.) | : (Click on the link for a full explanation of all the options available.) | ||
− | |||
* Accept the default settings by clicking on 'OK'. | * Accept the default settings by clicking on 'OK'. | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
: An empty flowchart window opens, which may contain other items such as a [[System Panel]], [[Dashboard Panel]], [[Properties Panel]] etc. | : An empty flowchart window opens, which may contain other items such as a [[System Panel]], [[Dashboard Panel]], [[Properties Panel]] etc. | ||
: These can be revealed or hidden using the [[View]] menu. | : These can be revealed or hidden using the [[View]] menu. | ||
+ | |||
+ | |||
* Set up the flowchart window so that you can see the System Panel and the Properties Panel. | * Set up the flowchart window so that you can see the System Panel and the Properties Panel. | ||
* Drag and drop a 'Loop' icon between the Begin and End icons. | * Drag and drop a 'Loop' icon between the Begin and End icons. | ||
: The 'Loop' icon makes the microcontroller repeatedly run through the program, (though the icon can be configured to limit the number of times this happens.) | : The 'Loop' icon makes the microcontroller repeatedly run through the program, (though the icon can be configured to limit the number of times this happens.) |
Revision as of 09:52, 11 June 2013
The task is to produce a Flowcode flowchart that lights a lamp for ten seconds when a switch is pressed.
Although it may not be realistic to use a microcontroller in such a straight-forward application, it illustrates the technique of producing a Flowcode program.
The program itself may form part of a bigger program.
- Open Flowcode.
- On the Startup screen, click on 'New embedded project'. (See Opening Flowcode
- The Project Options dialogue box opens.
- (Click on the link for a full explanation of all the options available.)
- Accept the default settings by clicking on 'OK'.
- An empty flowchart window opens, which may contain other items such as a System Panel, Dashboard Panel, Properties Panel etc.
- These can be revealed or hidden using the View menu.
- Set up the flowchart window so that you can see the System Panel and the Properties Panel.
- Drag and drop a 'Loop' icon between the Begin and End icons.
- The 'Loop' icon makes the microcontroller repeatedly run through the program, (though the icon can be configured to limit the number of times this happens.)