Sets given output of the turnout on/off.

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

Syntax

C#
public AccessoryInfo AccessoryOperate(
	int accAddr,
	bool action,
	int output
)
Visual Basic
Public Function AccessoryOperate ( _
	accAddr As Integer, _
	action As Boolean, _
	output As Integer _
) As AccessoryInfo
Visual C++
public:
AccessoryInfo^ AccessoryOperate(
	int accAddr, 
	bool action, 
	int output
)

Parameters

accAddr
Type: System..::..Int32
Turnout address (not group address!)
action
Type: System..::..Boolean
True to set the output on, false to set it off.
output
Type: System..::..Int32
Number of the output (1 = turnout side, 2 = turnout straight)

Return Value

Returns AccessoryInfo instance containing information about the operated turnout.

See Also