Main Content

setRTS

Set serial RTS pin

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)

Set and then reset the serial RTS pin using the VISA-Serial interface.

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

Input Arguments

collapse all

Serial port, specified as a serialport object or visadev object.

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

Example: setRTS(device,true) sets the RTS pin for the VISA-Serial resource device.

See Also

Functions

Introduced in R2019b