Gets or sets the position property of the servo motor.

Namespace:  Phidgets
Assembly:  Phidget21.NET (in Phidget21.NET.dll) Version: 2.1.9.34

Syntax

C#
public double Position { get; set; }
Visual Basic (Declaration)
Public Property Position As Double
Visual C++
public:
property double Position {
	double get ();
	void set (double value);
}

Remarks

Note that since servo motors do not offer any feedback in their interface, this value is simply whatever the servo was last set to. There is no way of determining the position of a servo that has been plugged in, until it's position has been set. Therefore, if an initial position is important, it should be set as part of initialization.

Exceptions

ExceptionCondition
Phidgets..::.PhidgetExceptionIf this Phidget is not opened and attached, or if the position is out of range.

See Also