Serial Definition
This MotoHawk™ block defines and initializes the serial port.
Block ID
motohawk_serial_def
Library
MotoHawk_lib/Serial I/O Blocks
Description
This block defines and initializes a serial port.
This block must be placed in the model to use MotoTune with the serial port.
Block Parameters
Parameter Field | Values | Comments/Description |
---|---|---|
Name | Alpha-numeric text, single-quote enclosed | Enter a unique name. No special characters, such as spaces, dashes or commas (underscore allowed). A name is inherited if no name is given. Blocks like the Serial Receive and the Serial Transmit will reference this name. |
Resource | Drop-down list | Specify module specific resource. |
Use MotoTune | Check Box | Check if this serial port is to be used with MotoTune. |
Baudrate | Drop-down list | Specify baud rate of the link. Only visible when Use MotoTune is not checked. |
Transmit Queue Size | Numeric | Specify message queue size, or 0 for no queue. Only visible when Use MotoTune is not checked. |
Receive Queue Size | Numeric | Specify message queue size, or 0 for no queue. Only visible when Use MotoTune is not checked. |
Parity | Drop-down list | Specifies link parity. Only visible if supported by the Resource and Use MotoTune is not checked. |