Position Generator
R2026bGenerate position ramp of fixed frequency
Libraries:
Motor Control Blockset /
Signal Management
Motor Control Blockset HDL Support /
Controls /
Control Reference
Description
The Position Generator block generates a position ramp signal (with a frequency that is identical to that of the reference voltage signal) using the position increment value of the reference signal.
We recommend that you use fixed-step discrete solver for this block to enable code generation and ensure accurate simulation.

Examples
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.
"mcblib/Signal Management/Position Generator"
"mcbhdllib/Controls/Control Reference/Position Generator"
Example: add_block("mcblib/Signal Management/Position Generator","myModel/myBlock",MakeNameUnique="on")



