Exercise - Importing the LED Component: Difference between revisions
Appearance
JohnVerrill (talk | contribs) No edit summary |
JohnVerrill (talk | contribs) No edit summary |
||
| Line 10: | Line 10: | ||
* Create a flowchart which uses the imported component. | * Create a flowchart which uses 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. | ||
* Simulate the flowchart, (see [[Exercise - Simulate a simple flowchart]], to test whether the import has worked. | * 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. | |||
Revision as of 11:32, 24 May 2013
- 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.
- 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.
- Create a flowchart which uses the imported component.
- 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 one you want, and then click on 'OK'.
- Simulate the flowchart, (see Exercise - Simulate a simple flowchart), to test whether the import has worked.