Main Content

setRTS

Set serial RTS pin

Since R2019b

Description

example

setRTS(device,true) sets the specified serial request to send (RTS) pin.

example

setRTS(device,false) resets the specified serial RTS pin.

Examples

collapse all

Set and then reset the serial RTS pin.

device = serialport("COM3",9600);
 ⋮
setRTS(device,true)
 ⋮
setRTS(device,false)

Input Arguments

collapse all

Serial port connection, specified as a serialport object.

Example: setRTS(device) sets the RTS pin for the serial port connection device.

Version History

Introduced in R2019b