Skip to Main Content Skip to Search
Product Documentation

StopBits - Specify number of bits used to indicate end of byte

Description

You can configure StopBits to be 1, 1.5, or 2 for serial port objects, or 1 or 2 for VISA-serial objects If StopBits is 1, one stop bit is used to indicate the end of data transmission. If StopBits is 2, two stop bits are used to indicate the end of data transmission. If StopBits is 1.5, the stop bit is transferred for 150% of the normal time used to transfer one bit.

In addition to the stop bits, the serial data format consists of a start bit, between five and eight data bits, and possibly a parity bit. You specify the number of data bits with the DataBits property, and the type of parity checking with the Parity property.

Characteristics

Usage

Serial port, VISA-serial

Read only

Never

Data type

double

Values

Serial Port

{1}

One stop bit is transmitted to indicate the end of a byte.

1.5

The stop bit is transferred for 150% of the normal time used to transfer one bit.

2

Two stop bits are transmitted to indicate the end of a byte.

VISA-Serial

{1}

One stop bit is transmitted to indicate the end of a byte.

2

Two stop bits are transmitted to indicate the end of a byte

See Also

Properties

DataBits, Parity

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS