Get one byte of data from the specified serial port.
If data is not available, the block outputs -1.
Enter the number of the serial port. For Arduino Mega 2560,
enter 0 - 3. For Arduino Uno, enter 0. One Serial Receive block using
the same port is allowed in the model.
This block outputs the first byte of the incoming serial data
on the specified serial Arduino port. Ports 0, 1, 2, and 3 are available.
The block operates in non-blocking fashion. If the data is not
available, the block outputs -1.
One Serial Receive blocks using the same pin is allowed in the
This block uses the Serial.read function from the standard Arduino
Input Port: - V: inherited data type (internally converted to
If you run your model on target hardware, this block outputs
actual data. If you simulate your model without running it on the
target hardware, this block outputs zeroes. See TBD
Get One Byte of Data from Serial Port
Use the Serial Receive block to get one byte
of data from a serial port.
Install support for Arduino using the Target Installer,
as described in TBD
(Perform the second step — TBD)