MotoHawk:Blocks:Size Of Block
From MotoHawk
Jump to navigationJump to searchSizeOf() Block
This MotoHawk™ block will return information on the size of the specified VarDec.
Block ID
motohawk_data_sizeof
Library
MotoHawk_lib/Data Storage Blocks
Description
This block will return either the number of bytes, the total number of elements (rows * columns), number of rows, or the number of columns based on the output format. The output port data type is selected via the output data type parameter.
Block Parameters
Parameter Field | Values | Comments/Description |
---|---|---|
Data Source | Select method for identifying data source. | |
Lookup by Name | Select to identify data source by VarDec name | |
Lookup by Name in Structure | Select to identify data source by the name for the data if a structure instance is applicable (if the data is used in a structure). | |
Output Format | Bytes, Elements, Rows, Columns | Select desired output format type from data (number of byes, number of rows, or the number of columns, or the total number of elements - i.e., rows * columns) |
Output Data Type | Drop-down list | Assign required data type |
Data Name | Alpha-numeric text, single-quote enclosed | If Lookup by Name selected for Data Source, enter Name of data source (exact VarDec name). No special characters, such as spaces, dashes, commas (underscore allowed). |
Structure Instance Name | Alpha-numeric text, single-quote enclosed | If Lookup by Name in Structure selected for Data Source, enter the Name of Structure Instance (exact name). No special characters, such as spaces, dashes, commas (underscore allowed). |