Difference between revisions of "MotoHawk:Blocks:Structure Declaration"
From MotoHawk
Jump to navigationJump to search (Created page with "=Structure Declaration= This MotoHawk™ block defines the fields for a structure, the default values for those fields, and what enumeration should be used for each field. =...") |
(→Description) |
||
| Line 15: | Line 15: | ||
[[Image:Structure_Declaration.PNG]] | [[Image:Structure_Declaration.PNG]] | ||
| − | See [../ | + | See [http://mcs.woodward.com/support/wiki/index.php?title=Structures Structures] for more information. |
==Block Parameters== | ==Block Parameters== | ||
Latest revision as of 20:04, 20 September 2012
Structure Declaration
This MotoHawk™ block defines the fields for a structure, the default values for those fields, and what enumeration should be used for each field.
Block ID
motohawk_struct_decl
Library
MotoHawk_lib/Data Storage Blocks
Description
See Structures for more information.
Block Parameters
| Parameter Field | Values | Comments/Description |
|---|---|---|
| Structure Name | Alpha-numeric text, single-quote enclosed. | Identify the structure by name. No special characters, such as spaces, dashes, commas (underscore allowed). |
| Initial Value | struct('Member1', uint32(0), 'Member2', uint32(0)) | Use the struct command syntax to define the fields in the structure and supply initial values |
| Enumeration Definitions | {'', {'Disabled', 'Enabled'}} | Define the enumeration for the listed fields. |