setRTS

Set serial RTS pin

Description

example

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

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

Examples

collapse all

Set and then reset the serial RTS pin.

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

Input Arguments

collapse all

Serial port, specified as a serialport object.

Example: serialport()

See Also

Functions

Introduced in R2019b