Difference between revisions of "Exercise - Using Simulation Macros"
From Flowcode Help
Jump to navigationJump to searchJohnVerrill (talk | contribs) |
JohnVerrill (talk | contribs) |
||
Line 1: | Line 1: | ||
− | Simulation macros are | + | Simulation macros are a form of Component macros. Their purpose is to make simulation more realistic by adding physical components to the electronic devices. |
− | When the Flowcode program is compiled and downloaded to a microcontroller, they are ignored - hence the name | + | When the Flowcode program is compiled and downloaded to a microcontroller, they are ignored - hence the name Simulation macros. |
Even a cursory glance at the dialogue box used to configure them shows that they are very powerful devices, with a huge range of possible effects. | Even a cursory glance at the dialogue box used to configure them shows that they are very powerful devices, with a huge range of possible effects. | ||
+ | |||
+ | This exercise uses two of them to illustrate the use of a PIR (passive infra-red sensor) to operate an intruder sensor. | ||
+ | |||
+ | |||
__TOC__ | __TOC__ | ||
Revision as of 17:35, 23 August 2013
Simulation macros are a form of Component macros. Their purpose is to make simulation more realistic by adding physical components to the electronic devices.
When the Flowcode program is compiled and downloaded to a microcontroller, they are ignored - hence the name Simulation macros.
Even a cursory glance at the dialogue box used to configure them shows that they are very powerful devices, with a huge range of possible effects.
This exercise uses two of them to illustrate the use of a PIR (passive infra-red sensor) to operate an intruder sensor.
Why would you want to?
- Flowcode
- Experienced
- Students
Adding supplementary code
This feature
Definitions and function declarations:
This is
Function implementations: