Raptor:CAN Tx Raw

From NewEagleWiki
Revision as of 17:32, 12 September 2023 by Jwoytsek (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Return to the main Raptor page

Return to CAN page

Raptor CAN Tx Raw

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.