Raptor:CAN Tx Raw: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
[[ | [[Raptor-Platform|Return to the main Raptor page]] | ||
[[Raptor | [[Raptor-Dev-CAN-Library|Return to CAN page]] | ||
[[File:RaptorCANTxRaw.jpg|right|frame|Raptor CAN Tx Raw]] | [[File:RaptorCANTxRaw.jpg|right|frame|Raptor CAN Tx Raw]] | ||
Line 32: | Line 32: | ||
| uint8[8] | | uint8[8] | ||
| The raw data bytes of the message to transmit. This must be a vector of length 8. If the specified length is less than 8, the upper bytes are ignored. | | The raw data bytes of the message to transmit. This must be a vector of length 8. If the specified length is less than 8, the upper bytes are ignored. | ||
|} | |} | ||
Line 57: | Line 49: | ||
| Specifies the size of the transmit queue. | | Specifies the size of the transmit queue. | ||
|} | |} | ||
Latest revision as of 17:32, 12 September 2023
Return to the main Raptor page
Description
This block is used to transmit a message on the CAN bus. The message is transmitted whenever the block is executed. The Raptor™ CAN Tx Message block can be used to transmit periodic messages and when access to the raw CAN message frame is not necessary.
Each CAN raw tx block has a transmit queue. This queue is used to store messages if the transmit block is executed faster than the messages can be transmitted on the CAN bus. This will typically happen if the tx raw block is located in a for or while loop. If the queue is full when the block executes the oldest tx message will be overwritten.
Inputs
Input | Type | Description |
---|---|---|
extended | boolean | Indicates if the message id is standard (0) or extended (1). |
ID | uint32 | The message id to transmit. |
Length | uint8 | The length of the message to transmit. Valid values are 0-8. |
Data | uint8[8] | The raw data bytes of the message to transmit. This must be a vector of length 8. If the specified length is less than 8, the upper bytes are ignored. |
Parameters
Parameter | Type | Description |
---|---|---|
CAN Bus Name | String | The CAN bus to transmit the message on. |
Queue Size | Number | Specifies the size of the transmit queue. |