Engee documentation

RITM-CAN TX

Issuing CAN messages.

blockType: CFunction

Path in the library:

/RITM/RITM CAN/RITM-CAN TX

Description

To work with the block, install/update the support package RITM blocks.

Block RITM-CAN TX it is used for issuing CAN messages.

Ports

Input

# Number of messages — the number of CAN messages to be transmitted from the input array "Messages"
scalar

Details

Sets the number of messages to be sent at the current calculation step from the input array Messages.

The block sends the first N array elements Messages, where N = Number of messages. Value N It must not exceed the length of the input array and the value of the block parameter "Maximum message size". When N = 0 messages are not transmitted.

Data types

UInt32

Complex numbers support

I don’t

# Messages — array of CAN messages to send
vector

Details

Input array of messages of the type CAN_MESSAGE_BUS intended for transmission to the CAN network. The type of each element is the CAN message bus (ID, format/remote flags, etc., length and data bytes).

Data types

Float64

Complex numbers support

I don’t

# RITM-CAN Setup — the descriptor of the configured CAN interface (connection from the CAN Setup block).
scalar

Details

The input port accepts the handle of the CAN interface configured by the CAN Setup block. Connect this Input to the output RITM-CAN RX/TX the corresponding CAN Setup block, which configures the desired physical port.

Data types

Float64

Complex numbers support

I don’t

Parameters

Параметры:

# Интерфейс CAN: — CAN port for message transmission
CAN 1 | CAN 2 | CAN 3 | CAN 4 | CAN 5 | CAN 6 | CAN 7 | CAN 8

Details

The port numbers are indicated on the case of the KPM "RITM".

Values

CAN 1 | CAN 2 | CAN 3 | CAN 4 | CAN 5 | CAN 6 | CAN 7 | CAN 8

Default value

CAN 1

Program usage name

m_interfaceCAN

Tunable

No

Evaluatable

Yes

# Максимальное число сообщений: — the maximum possible value of the input parameter Size and the length of the vector Data

Details
Default value

1

Program usage name

m_maxMsgNum

Tunable

No

Evaluatable

Yes

# Шаг расчёта, с: — calculation step in seconds for sending CAN messages from a real-time application

Details
Default value

-1

Program usage name

m_smplT

Tunable

No

Evaluatable

Yes