Template:UgEncoder: Difference between revisions

From Phidgets Support
No edit summary
Line 1: Line 1:
===Encoder===
===Encoder===
Double-click on the Encoder object, labelled ''Encoder Input'', in order to run the example:
[[Image:{{{1}}}_Encoder_Example.jpg|center|link=]]


[[Image:{{{1}}}_Encoder_Example.jpg|right|link=]]
When you double click on an Encoder object, a window like the one pictured will open.
* At the top of the window, information about your device and the properties of this particular channel will be listed.
* On the left, you can enable the input (if applicable) and specify the counts per revolution (CPR) to enable velocity calculation. Press enter after typing a number to enable velocity.
* On the right, real-time data is displayed:
** '''Position Change:''' The number of ticks (or quadrature cycles) that have occurred since the last change event.
** '''Time Change:''' The amount of time in milliseconds that has elapsed since the last change event.
** '''Position:''' The total position in ticks relative to where the encoder was when the window was opened.
** '''Index Position:''' The position where the index channel (if supported by this encoder) was last encountered.
** '''Velocity:''' If a CPR has been specified, the average velocity in rotations per minute.


{{UGExampleDescription}}
*Specify a counts per revolution (CPR) value to enable velocity calculation.
*The ''Position Change'' label indicates the number of ticks (or quadrature cycles) that have occurred since the last change event.
*The ''Time Change'' label indicates the amount of time in milliseconds that has elapsed since the last change event.
*The ''Position'' label indicates the total position in ticks relative to where the encoder was when the window was opened.
*The  ''Index Position'' indicates the position where the index channel was last encountered. Some encoders do not support index, check your encoder's datasheet for more information.
*The ''Velocity'' indicates the average velocity in rotations per second. A CPR must be specified to enable this functionality.
<br clear="all">
<br clear="all">

Revision as of 20:35, 14 June 2017

Encoder

Double-click on the Encoder object, labelled Encoder Input, in order to run the example: [[Image:{{{1}}}_Encoder_Example.jpg|center|link=]]


General information about the selected object will be displayed at the top of the window. You can also experiment with the following functionality:

  • Specify a counts per revolution (CPR) value to enable velocity calculation.
  • The Position Change label indicates the number of ticks (or quadrature cycles) that have occurred since the last change event.
  • The Time Change label indicates the amount of time in milliseconds that has elapsed since the last change event.
  • The Position label indicates the total position in ticks relative to where the encoder was when the window was opened.
  • The Index Position indicates the position where the index channel was last encountered. Some encoders do not support index, check your encoder's datasheet for more information.
  • The Velocity indicates the average velocity in rotations per second. A CPR must be specified to enable this functionality.