Quadrature Shaft Decoder
R2026bDecode incremental shaft encoder output
Libraries:
Simscape /
Electrical /
Control /
Observers
Description
The Quadrature Shaft Decoder block measures the shaft rotation from an encoder block, such as the Incremental Shaft Encoder, and outputs the velocity and position.
The block counts the transitions of a pair of digital signals, A and B, that are positioned 90° out of phase. The block determines the direction and relative position by counting only one of the two signals changes per tick. The angular velocity is obtained by measuring the frequency of either signal.
Ports
Input
Output
Parameters
Programmatic Use: Add Block
To add the block programmatically, use the add_block function with one of these library block paths as the source.
"ee_sl_lib/Observers/Quadrature Shaft Decoder"
Example: add_block("ee_sl_lib/Observers/Quadrature Shaft Decoder","myModel/myBlock",MakeNameUnique="on")
Extended Capabilities
Version History
Introduced in R2019b
