Difference between revisions of "Exercise - Importing the LED Component"

From Flowcode Help
Jump to navigationJump to search
 
(11 intermediate revisions by one other user not shown)
Line 1: Line 1:
 +
<sidebar>Sidebar: Flowcode Exercises:Ex3</sidebar>
 
[[File:gen_exerciseimportmacro_compmacroprops.png|300px|right]]
 
[[File:gen_exerciseimportmacro_compmacroprops.png|300px|right]]
* Create a new flowchart.
+
* [[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 LED component, as described in [[Exercise - Create an LED Component]] and [[Exercise - Exporting the LED Component]].
  
 
* 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 '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.)
Line 8: Line 9:
 
* 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.  
 
* 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.  
  
* Create a flowchart which uses the imported component.
 
  
* Add a component macro to the flowchart, and double-click on it.
+
==What next?==
 
+
Create a flowchart which uses the imported component, and then [[Exercise - Testing an Imported LED Component|test the imported component]] in simulation to ensure it works properly
* Click on the 'Simulation' tab. The simulation macros, 'LEDoff' and 'LEDon',appear in the tree.
 
 
 
* Click on the one you want, and then click on 'OK'.
 
 
 
* Simulate the flowchart, (see [[Exercise - Simulate a simple flowchart]]), to test whether the import has worked.
 

Latest revision as of 14:44, 13 March 2014

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

Gen exerciseimportmacro compmacroprops.png
  • 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.)
  • 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.


What next?

Create a flowchart which uses the imported component, and then test the imported component in simulation to ensure it works properly