Engee documentation

CAN FD RX

Receiving CAN messages.

blockType: EngeeFunction

Path in the library:

/Interfaces/CAN FD/CAN FD RX

Description

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

Block CAN FD RX It is used for receiving CAN messages.

Ports

Output

# Messages count — number of messages received
scalar

Details

The number of received messages must be less than the parameter value. Число сообщений:. If there are more messages in the operating system buffer, they will be passed to the model during the next calculation step.

Data types

Float64

Complex numbers support

No

# Messages — messages
the tire

Details

An array of received messages of the type CAN_MESSAGE_BUS.

Data types

BusSignal

Complex numbers support

No

Parameters

Parameters

# Порт: — CAN port for receiving messages

Details
Default value

"PCAN_USBBUS2"

Program usage name

m_port

Tunable

No

Evaluatable

Yes

# Число сообщений: — the maximum number of messages passed to the model in one calculation step

Details
Default value

1

Program usage name

m_messages

Tunable

No

Evaluatable

Yes

# Filter ID: — ID of the received message filter

Details
Default value

0x00

Program usage name

m_filter

Tunable

No

Evaluatable

Yes

# Mask: — filter mask for received messages

Details
Default value

0x00

Program usage name

m_mask

Tunable

No

Evaluatable

Yes

# Потоковое получение данных: — message streaming mode

Details

Using the streaming mode for receiving CAN messages.

Streaming data acquisition is a mode in which the block reads messages from an internal stream and sends them to the model as they appear. It is usually used together with While Iteration subsystem to process all received messages in one step of the model.

Default value

false (switched off)

Program usage name

m_stream

Tunable

No

Evaluatable

Yes

# Шаг расчёта, с: — the calculation step for receiving messages

Details

To inherit the calculation step, set this parameter to −1.

Default value

0.05

Program usage name

m_sample_time

Tunable

No

Evaluatable

Yes