SetHandshakeSignals

<< Click to Display Table of Contents >>

Navigation:  Reference (Scripting) > Docklight Script Commands - The DL Object > Methods (Advanced) >

SetHandshakeSignals

Sets the RTS and DTR handshake signals. Only allowed when Flow Control: Manual is used.

 

Syntax

 

DL.SetHandshakeSignals rts, dtr

 

The SetHandshakeSignals method syntax has these parts:

 

Part

Description

rts

Required. Boolean value to set RTS = High (True) or RTS = Low (False)

dtr

Required. Boolean value to set DTR = High (True) or DTR = Low (False)

 

Remarks

 

See also the GetHandshakeSignals function for reading the current state of the handshake signals.

 

SetHandshakeSignals can be used before opening the communication channel to ensure a certain state of the RTS and DTR lines on initialization.

 

Example

 

' Example SetHandshakeSignals

DL.SetHandshakeSignals true, false

DL.StartCommunication

DL.Pause 1000

DL.SetHandshakeSignals false, true

DL.Pause 1000