Main Content

setDTR

Set serial DTR pin

Description

example

setDTR(device,true) sets the specified serial data terminal ready (DTR) pin.

setDTR(device,false) resets the specified serial DTR pin.

Examples

collapse all

Set and then reset the serial DTR pin.

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

Input Arguments

collapse all

Serial port, specified as a serialport object.

Example: serialport()

See Also

Functions

Introduced in R2019b