Create a connection to a serial port device.
device =
Serialport with properties:
Port: "COM3"
BaudRate: 9600
NumBytesAvailable: 0
Show all properties, functions
Write some data to the device and view the number of bytes available to be read in
the input buffer.
Flush both the input and output buffers.
View the number of bytes available to be read.
The input buffer has no data.