Operates given turnout output momentarily (turns it on and then off after a given time).

Namespace: XpressnetLib
Assembly: XpressnetLib (in XpressnetLib.dll) Version: 0.1.4195.39796

Syntax

C#
public AccessoryInfo AccessoryOperateMomentary(
	int accAddr,
	int output,
	int delayMS
)
Visual Basic
Public Function AccessoryOperateMomentary ( _
	accAddr As Integer, _
	output As Integer, _
	delayMS As Integer _
) As AccessoryInfo
Visual C++
public:
AccessoryInfo^ AccessoryOperateMomentary(
	int accAddr, 
	int output, 
	int delayMS
)

Parameters

accAddr
Type: System..::..Int32
Turnout address (not group address!)
output
Type: System..::..Int32
Number of the output (1 = turnout side, 2 = turnout straight)
delayMS
Type: System..::..Int32
How long before turning the output back off in miliseconds?

Return Value

Returns AccessoryInfo instance containing the information about the operated turnout.

See Also