Engee documentation

Arduino-serialRead

Reading data from the serial port.

blockType: CFunction

Path in the library:

/Interfaces/Targets/Arduino/Arduino-serialRead

Description

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

Block Arduino-serialRead It is used to read data from the serial port.

To use this block, you must first configure the channel corresponding to the one used in the block. To set up the channel, use the block Arduino-serialSetup.

Ports

Output

# OUT_1 — read data
scalar

Details

Bytes received from the serial port.

Data types

UInt8

Complex numbers support

No

# OUT_2 — the size of the read data
scalar

Details

The size of the received data.

Data types

UInt32

Complex numbers support

No

Parameters

Main group

# Номер канала: — available channels to use
0 | 1 | 2 | 3

Details

A list of available channels to use. This number determines which object (Serial, Serial1, …​ correspond to the numbers 0,1, …​) will be used for initialization.

Values

0 | 1 | 2 | 3

Default value

0

Program usage name

m_serial

Tunable

No

Evaluatable

Yes

# Размер буфера: — size of the buffer being read

Details

The size of the buffer for the received data.

Default value

16

Program usage name

m_recv_buf

Tunable

No

Evaluatable

Yes

# Шаг расчёта: — the period for invoking the block

Details

Specify the interval between the calculation steps as a non-negative number. To inherit the calculation step, set this parameter to −1.

Default value

-1

Program usage name

sample_time

Tunable

No

Evaluatable

Yes