Main Content

Resolver Decoder

Compute electrical angular position of resolver

  • 库:
  • Motor Control Blockset / Sensor Decoders

Description

TheResolver Decoderblock calculates the electrical angular position of the resolver from the resolver sine and cosine output signals.

The resolver uses a primary sinusoidal excitation input signal to generate the modulated secondary sine and cosine waveforms.

You must normalize these waveforms (within the range of [-1,1] and centered at 0) and sample them to obtain the secondary sine and cosine input signals of the Resolver Decoder block.

The block computes and outputs the resolver position in [0, 2π] radians. The block can also add a phase delay to the sampled sine and cosine signals with respect to the excitation signal.

Note

The block inputs should have identical amplitude and data types (either signed fixed or floating point).

Equations

The block computes the average, peak amplitude values, and the sign of the peak amplitude of a signal cycle as

a v e r a g e = 1 n i = 0 n 1 ( | i | )

p e a k = a v e r a g e × π 2

S i g n o f P e a k = S i g n o f [ i = p h a s e d e l a y n 2 1 + p h a s e d e l a y i ]

where:

  • a v e r a g e is the average amplitude value of a signal cycle

  • n is the number of samples per excitation cycle

  • p e a k is the peak amplitude value of a signal cycle

The block computes the electrical angular position of the resolver as

θ = atan 2 u sin _ p e a k u cos _ p e a k

where:

  • u sin _ p e a k is the p e a k of the secondary sine signal

  • u cos _ p e a k is the p e a k of the secondary cosine signal

  • θ is the electrical angular position of the resolver

Ports

Input

expand all

Secondary sine waveform output from the resolver that is sampled and normalized within the range of [-1, 1] and centered at 0.

Data Types:single|double|fixed point

Secondary cosine waveform output from the resolver that is sampled and normalized within the range of [-1, 1] and centered at 0.

Data Types:single|double|fixed point

Output

expand all

Electrical angular position of the resolver (and the rotor) in [0, 2π] radians.

Data Types:single|double|fixed point

Parameters

expand all

The phase delay that the block must add to theSinandCosinput port signals.

Number of samples available in one cycle of theSinandCosinput port signals.

The data type of the resolver position outputθ.

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