MotoHawk:Blocks:Read Global Expression Evaluated
From MotoHawk
Jump to navigationJump to searchRead Global Expression
This MotoHawk™ block inserts a stub to call an arbitrary global function or expression returning a scalar variable.
Block ID
motohawk_read_global_expression
Library
MotoHawk_lib/Extra Development Blocks
Description
Title and Port Label are only used to label the block. Include Statement inserts code at the top of the generated C code file, to import declarations from a header file. Signature inserts a line directly preceding the expression. This can be used to extern functions or variables. Expression in inserted inline, to update the signal value. Return Data Type must be selected to declare the signal data type in Simulink. The values placed into this block are not checked. A compiler or linker error will occur if there are errors.
Block Parameters
Parameter Field | Values | Comments/Description |
---|---|---|
Title | Alpha-numeric text | Enter text to Label Block |
Port Label | Alpha-numeric text | Enter text to Label Port |
Include Statement | Alpha-numeric text | Inserts code at the top of the generated C code file, to import declarations from a header file. |
Signature | Alpha-numeric text | Inserts a line directly preceding the expression which can be used to extern functions or variables. |
Inline Expression | Alpha-numeric text | Enter code expression to update signal value. |
Data Type | Drop-down list | select to declare signal data type in Simulink. |