Difference between revisions of "HANcoder/STM32/Blocks/Quadrature Encoder Get"
From OpenMBD
m (Jasonvankolfschoten moved page HANcoder/Quadrature Encoder Get to HANcoder/STM32/Blocks/Quadrature Encoder Get without leaving a redirect) |
|||
Line 35: | Line 35: | ||
| Sample time of the block. The Sample time (in seconds) defines the rate at which the block is visited by the real-time scheduler of the target. The value of the Sample time has to be an integer multiple of the base sample time of the model. | | Sample time of the block. The Sample time (in seconds) defines the rate at which the block is visited by the real-time scheduler of the target. The value of the Sample time has to be an integer multiple of the base sample time of the model. | ||
|} | |} | ||
− | |||
− | |||
− |
Latest revision as of 11:32, 5 May 2017
Supported Targets: Olimexino, E407, P405
Contents
General information about Quadrature Encoder Get
This block reads the counter of the quadrature encoder module.
Block
Mask
Inputs (inports)
reset input (optional) if the value goes from 0 to 1 the counter output will be reset.
Outport
The output is a 32-bit signed counter. The counter starts at zero and counts up or down depending on the direction of the sensor shaft.[int32]
Block parameters
Parameter | Description |
---|---|
Quad encoder module | Select the output pin where the PWM signal should be generated. |
Configuration | Select the pin electrical configuration. |
Show counter reset input | When this checkbox is ticked an input appears. |
Sample time | Sample time of the block. The Sample time (in seconds) defines the rate at which the block is visited by the real-time scheduler of the target. The value of the Sample time has to be an integer multiple of the base sample time of the model. |