Set the value for this device as a double.

Namespace: ASCOM.DeviceInterface
Assembly: ASCOM.DeviceInterfaces (in ASCOM.DeviceInterfaces.dll) Version: 6.0.0.0 (6.1.1.2619)

Syntax

C#
void SetSwitchValue(
	short id,
	double value
)
Visual Basic
Sub SetSwitchValue ( _
	id As Short, _
	value As Double _
)
Visual C++
void SetSwitchValue(
	short id, 
	double value
)

Parameters

id
Type: System..::..Int16
The device number (0 to MaxSwitch - 1)
value
Type: System..::..Double
The value to be set, between MinSwitchValue(Int16) and MaxSwitchValue(Int16)

Remarks

Can throw a MethodNotImplementedException if CanWrite(Int16) is False.

If the value is more than MaxSwitchValue(Int16) or less than MinSwitchValue(Int16) then the method must throw an InvalidValueException.

A set value that is intermediate between the values specified by SwitchStep(Int16) should result in the device being set to an achievable value close to the requested set value.

Devices are numbered from 0 to MaxSwitch - 1.

This is a Version 2 method.

Exceptions

See Also