Main Content

Position Generator

Generate position ramp of fixed frequency

Since R2020a

Libraries:
Motor Control Blockset / Controls / Control Reference
Motor Control Blockset HDL Support / Controls / Control Reference

Description

ThePosition Generatorblock 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

expand all

Position increment value of a fixed frequency reference voltage signal (in either per unit, radians, or degrees). These equations describe how the block computes the position increment:

  • Δ θ (per unit) = Frequency × Sample Time

  • Δ θ (radians) = 2 π × Frequency × Sample Time

  • Δ θ (degrees) = 360 × Frequency × Sample Time

Data Types:single|double|fixed point

External pulse that resets the position ramp output based on the value of theExternal resetparameter.

Dependencies

To enable this port, setExternal resetto eitheractive high resets to zerooractive high resets to initial condition.

Data Types:single|double|fixed point

Output

expand all

Position or phase value of the reference voltage signal (in either per unit, radians, or degrees).

Data Types:single|double|fixed point

Parameters

expand all

Unit of the input position increment value and the output reference voltage position.

输出位置斜坡值(在这两种单位,radians, or degrees) at initial time (0 seconds).

输出位置斜坡值(在这两种单位,radians, or degrees) at the time when the block receives an active high external reset pulse. You can reset the output to either zero or to equal the value of theInitial theta outputparameter.

Extended Capabilities

C/C++ Code Generation
Generate C and C++ code using Simulink® Coder™.

Fixed-Point Conversion
Design and simulate fixed-point systems using Fixed-Point Designer™.

版本历史

Introduced in R2020a