Main Content

serialbreak

Send break to device connected to serial port

    Description

    serialbreak(device,time) sends a break of the specified duration time, in milliseconds, to the specified serial port device, by setting the transmit pin (TXD) to high for the duration. The duration of the break might be inaccurate under some operating systems. For some devices, you can use the break signal as a way to clear the hardware buffer. The function suspends MATLAB® execution until it is complete.

    Input Arguments

    collapse all

    Serial port connection, specified as a serialport object.

    Example: serialbreak(device,10) sends a 10 millisecond break to the serial port connection device.

    Duration of break in milliseconds, specified as a positive integer value.

    Example: serialbreak(device,10) sends a 10 millisecond break to the serial port connection device.

    Version History

    Introduced before R2006a

    expand all

    See Also

    Functions