Module Data Get
This MotoHawk™ block allows the application to read module specific data like the module's part number string, the module's hardware version, or the junction temperature of the module's microcontroller.
Block ID
Get Module Data
Library
MotoHawk_lib/Extra Development Blocks
Description
This block allows the application to read module specific data like the module's part number string, the module's hardware version, or the junction temperature of the module's microcontroller.
A model can use multiple instances of this block to select the same data.
The output interface is defined based upon the selected data. The port label on the block will indicate the function of the port and its type. It will use [ ] to indicate the dimensions of the output if it is a vector and may optionally include engineering unit information. The number of outputs depends on what data is selected. For instance selecting hardware version may reveal two uint8 scalar ports for the major and minor version values whilst reading the module's serial number may expose a vector for the string along with a string length scalar.
The output interface will continue to use the interface of the previous selection when (None) data is selected. Zero values will be returned in this case. Maintaining the interface will avoid the block disconnecting signals should the selected data be accidentally set to (None). A (None) selection can also occur if the target is changed to a target that does not support the selected data. A warning can be enabled to have the block notify the developer in the event that a (None) selection is not expected.
Block Parameters
Get Tab
Parameter Field | Values | Comments/Description |
---|---|---|
Name | Alpha-numeric text, single-quote enclosed or empty | Optional name to be assigned to this instance of data. Name must be C-legal (no special characters, such as spaces, dashes or commas (underscore allowed). |
Data | Dropdown | Select the item of data to recover. Only data supported by the target in use will be available for selection. |
Characters to read | Integer 2 or greater |
Only a portion of a string need be recovered. Enter how many characters should be recovered. This option is only visible when a string attribute is to be recovered. |
Warning Tab
Parameter Field | Values | Comments/Description |
---|---|---|
Warn on (None) | Checkbox | When checked the block will issue a warning if the Data object is (None) |