Returns a motor's current velocity.
Namespace:
PhidgetsAssembly: Phidget21.NET (in Phidget21.NET.dll) Version: 2.1.9.34
Syntax
C# |
---|
public double Velocity { get; } |
Visual Basic (Declaration) |
---|
Public ReadOnly Property Velocity As Double |
Visual C++ |
---|
public: property double Velocity { double get (); } |
Remarks
The valid range is between VelocityMin and VelocityMax, with 0 being stopped.
This value is in (micro)steps per second. 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 per second.
Exceptions
Exception | Condition |
---|---|
Phidgets..::.PhidgetException | If this Phidget is not opened and attached, or if the velocity in unknown. |