Difference between revisions of "Simulation Macro Icon Properties"
m (ReeceL moved page Simulation Macro icon properties to Simulation Macro Icon Properties without leaving a redirect) |
|||
(33 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | <sidebar>Sidebar: Icon Properties</sidebar> | ||
+ | {| style="margin:auto; text-align:center;" | ||
+ | |- | ||
+ | |[[File:Btn_Simulation_Macro.gif|border]] | ||
+ | | width="50px" |→ | ||
+ | |[[File:Gen_Simulation_Macro_Flowchart_Icon_01.png]] | ||
+ | |width="50px" |→ | ||
+ | |[[File:Gen_Simulation_Macro_Icon_Properties_01.png]] | ||
+ | |} | ||
− | + | Macros are split into Macros and Component/Simulation macros. | |
− | + | Component macros are pre-defined macros supplied with the components. For example LCD macros are used to display numbers and characters on the LCD display. | |
− | ''' | + | Component macros are only available for use with that particular component. |
+ | |||
+ | Component macros have hatched outer bands on the icon. | ||
+ | |||
+ | |||
+ | Simulation macros can call simulation-only Component Macros, which provide a similar purpose, although they can only be used in simulation and cannot be run on hardware. | ||
+ | |||
+ | |||
+ | [[Creating a New Macro|Macros]] are those designed and created by the user. | ||
+ | |||
+ | Macros can be [[Exporting a Macro|exported]] and [[Importing a Macro|imported]] allowing users to build up macro libraries of common or important tasks. | ||
+ | |||
+ | On Macros the outer bands are clear and not hatched. | ||
+ | |||
+ | |||
+ | As well as calling simulation-only [[Component Macro Icon Properties|Component macros]], Simulation Macros can also call [[API Overview|Simulation Functions]] which provide enhanced software simulation although do not download code or compile to hardware. | ||
+ | |||
+ | These simulation functions are used to produce advanced systems on software to accurately replicate and simulate existing systems and even demonstrate new concepts by creating simulation-only programs to test the capabilities of potential systems. | ||
+ | |||
+ | |||
+ | '''Adding a simulation macro''' | ||
+ | |||
+ | Select the component and then [[Selecting Component Macros|select the Simulation Macro icon.]] | ||
+ | |||
+ | Select the component name from the list of attached components to expand the list group to reveal the available component macros to choose from. | ||
+ | |||
+ | Select the macro and add in any parameters required, and select a return value if required. | ||
+ | |||
+ | OR | ||
+ | |||
+ | Select the Simulation Macro icon and click the 'Functions' section. | ||
+ | |||
+ | Select filter through the categories and search through the list of all available functions. | ||
+ | |||
+ | Select the macro and fill in the parameters required and select a return value if required. | ||
+ | |||
+ | |||
+ | '''Parameters''' | ||
+ | |||
+ | If the device macro requires any parameters then these can be entered in this field. They can be numeric values or existing variables. Clicking on the down arrow [[File:Btn_Arrow.png]] brings up the variables dialog window allowing you to select an existing variable or to [[Creating Variables|create a new one]]. | ||
+ | |||
+ | The parameter details will list the parameter type. Parameters must be of the required type to be accepted. | ||
+ | |||
+ | Note that a full set of parameters must be provided. | ||
+ | |||
+ | |||
+ | '''Return value''' | ||
+ | |||
+ | If the device macro returns a value then you can assign that value to an existing variable for use later in the flowchart. If the function returns a value but you do not wish to retrieve it then leave this field empty. | ||
+ | |||
+ | The [[Variable Types|variable type]] of the return value will be listed. A variable of the specified type must be used to accept the return value. | ||
+ | |||
+ | |||
+ | ====Video instructions==== | ||
+ | |||
+ | Watch the [http://www.youtube.com/watch?v=LSz0p0NqMBw&list=PLQDWBb7bxuCgg6aJgPJcfXBMzZdLILceQ Download and Simulation code] video for a demonstration, example and explanation of downloadable and simulation only code and the difference between the two. | ||
+ | |||
+ | See the [http://www.youtube.com/watch?v=B_tOeSTeAbw&list=PLQDWBb7bxuCgg6aJgPJcfXBMzZdLILceQ Simulation Icon] video for information on the simulation functions available, the video highlights how they are organised and presented and how they can be used. | ||
+ | |||
+ | {| style="margin:auto;" | ||
+ | |- | ||
+ | |{{#ev:youtube|LSz0p0NqMBw}} | ||
+ | | width="100px" | | ||
+ | |{{#ev:youtube|B_tOeSTeAbw}} | ||
+ | |} |
Latest revision as of 14:59, 23 September 2013
<sidebar>Sidebar: Icon Properties</sidebar>
→ | → |
Macros are split into Macros and Component/Simulation macros.
Component macros are pre-defined macros supplied with the components. For example LCD macros are used to display numbers and characters on the LCD display.
Component macros are only available for use with that particular component.
Component macros have hatched outer bands on the icon.
Simulation macros can call simulation-only Component Macros, which provide a similar purpose, although they can only be used in simulation and cannot be run on hardware.
Macros are those designed and created by the user.
Macros can be exported and imported allowing users to build up macro libraries of common or important tasks.
On Macros the outer bands are clear and not hatched.
As well as calling simulation-only Component macros, Simulation Macros can also call Simulation Functions which provide enhanced software simulation although do not download code or compile to hardware.
These simulation functions are used to produce advanced systems on software to accurately replicate and simulate existing systems and even demonstrate new concepts by creating simulation-only programs to test the capabilities of potential systems.
Adding a simulation macro
Select the component and then select the Simulation Macro icon.
Select the component name from the list of attached components to expand the list group to reveal the available component macros to choose from.
Select the macro and add in any parameters required, and select a return value if required.
OR
Select the Simulation Macro icon and click the 'Functions' section.
Select filter through the categories and search through the list of all available functions.
Select the macro and fill in the parameters required and select a return value if required.
Parameters
If the device macro requires any parameters then these can be entered in this field. They can be numeric values or existing variables. Clicking on the down arrow brings up the variables dialog window allowing you to select an existing variable or to create a new one.
The parameter details will list the parameter type. Parameters must be of the required type to be accepted.
Note that a full set of parameters must be provided.
Return value
If the device macro returns a value then you can assign that value to an existing variable for use later in the flowchart. If the function returns a value but you do not wish to retrieve it then leave this field empty.
The variable type of the return value will be listed. A variable of the specified type must be used to accept the return value.
Video instructions
Watch the Download and Simulation code video for a demonstration, example and explanation of downloadable and simulation only code and the difference between the two.
See the Simulation Icon video for information on the simulation functions available, the video highlights how they are organised and presented and how they can be used.
LSz0p0NqMBw}} | B_tOeSTeAbw}} |