Difference between revisions of "Exercise - Importing and Testing the Traffic Cone"

From Flowcode Help
Jump to navigationJump to search
(Created page with "300px|right * Create a new flowchart. * The following assumes that you have built, and exported a LED component, as descri...")
 
 
(13 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[File:gen_exerciseimportmacro_compmacroprops.png|300px|right]]
+
<sidebar>Sidebar: Flowcode Exercises:Ex3</sidebar>
* Create a new flowchart.
+
[[File:gen_exercisetestconeimport_macroprops_01.png|300px|right]]
 +
* [[Creating Flowcharts|Create a new flowchart]].
  
* The following assumes that you have built, and exported a LED component, as described in [[Exercise - Create a LED component]] and [[Exercise - Exporting the LED component]].
+
* The following assumes that you have built, and exported a traffic cone component, as described in [[Exercise - Building a Complex Component|Building a Complex Component - a traffic cone]] and [[Exercise - Exporting the Traffic Cone Component|exporting the traffic cone]].
  
* Open the 'Outputs' toolbox, where you stored the exported 'newLED' component. (If no destination was specified for the exported component, it would appear in the 'Misc' toolbox.)
+
* Open the 'Misc' toolbox, and locate the exported 'traffic cone' component.  
  
* Locate the 'newLED' component, and use the down-arrow next to it to add it to the [[System Panel]]. It can now be used in the same way as any other electronic device.  
+
* Use the down-arrow next to it to add it to the [[System Panel]].
  
* Create a flowchart which uses the imported component.
+
* Create a flowchart to test the imported component:
  
* Add a component macro to the flowchart, and double-click on it.  
+
:* Add a component macro to the flowchart, and double-click on it.  
  
* Click on the 'Simulation' tab. The simulation macros, 'LEDoff' and 'LEDon',appear in the tree.  
+
:* Click on the 'Simulation' tab, and then on the 'flash' macro that appears in the macro list.  
  
* Click on the one you want, and then click on 'OK'.  
+
:* Then click on 'OK'.  
  
* Simulate the flowchart, (see [[Exercise - Simulate a simple flowchart]]), to test whether the import has worked.
+
* Your flowchart should now resemble the one shown below:
 +
[[File:gen_exercisetestconeimport_flowchart_01.png|200px|center]]
 +
 
 +
 
 +
* Simulate the flowchart, (see [[Exercise - Simulating a Program]]), to test whether the import has worked.

Latest revision as of 14:47, 13 March 2014

<sidebar>Sidebar: Flowcode Exercises:Ex3</sidebar>

Gen exercisetestconeimport macroprops 01.png
  • Open the 'Misc' toolbox, and locate the exported 'traffic cone' component.
  • Use the down-arrow next to it to add it to the System Panel.
  • Create a flowchart to test the imported component:
  • Add a component macro to the flowchart, and double-click on it.
  • Click on the 'Simulation' tab, and then on the 'flash' macro that appears in the macro list.
  • Then click on 'OK'.
  • Your flowchart should now resemble the one shown below:
Gen exercisetestconeimport flowchart 01.png