Gets or sets a motor's target position.

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

Syntax

C#
public long TargetPosition { get; set; }
Visual Basic (Declaration)
Public Property TargetPosition As Long
Visual C++
public:
property long long TargetPosition {
	long long get ();
	void set (long long value);
}

Remarks

Use this to set the target position for the stepper. If the stepper is engaged it will start moving towards this target position. Can also be used to get the currently set target position. The valid range is between PositionMin and PositionMax. This value is in (micro)steps. The step unit will depend on the Stepper Controller. For example, the Bipolar Stepper controller has an accuracy of 16th steps, so this value would be in 16th steps.

Exceptions

ExceptionCondition
Phidgets..::.PhidgetExceptionIf this Phidget is not opened and attached, or if the position in unknown.

See Also