This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Configure Communication Settings

Before you can write or read data, both the serial port object and the device must have identical communication settings. Configuring serial port communications involves specifying values for properties that control the baud rate and the serial data format. The following table describes these properties.

Communication Properties

Property NameDescription

'BaudRate'

Specify the rate at which bits are transmitted

'DataBits'

Specify the number of data bits to transmit

'Parity'

Specify the type of parity checking

'StopBits'

Specify the number of bits used to indicate the end of a byte

'Terminator'

Specify the terminator character

Note

If the serial port object and the device communication settings are not identical, data is not readable or writable.

Refer to the device documentation for an explanation of its supported communication settings.