Description
The Angle Sensor emulator is used to mimic the behavior of a resolver and a quadrature encoder according to an input rotation speed. This block implements the emulator for two independent speed values.
Mask Parameters
This block has no parameter.
Inputs
Theta ({i}): This input is used to provide the angle for each resolver/encoder pair. The angle should be provided as a turn ratio, between 0 and 1. The recomended numerical format for such angle is UFix24_24.
Ext. Carrier ({i}): This input is used to provide an external carrier for each of the resolvers.
Ext. Carrier Valid: This input is used to provide an internal write enable for the external carrier values. In the case the external carrier is recovered from an analog input channel, this signal should be connected to the "valid" flag of the analog input interface.
Params: This input should be connected to the LoadIN block through an "AngleSensors Unpacking" block. It receives all necessary parameter info from the RT-LAB model.
Outputs
AngleSensorsOut: This output is a Simulink composite signal containing all outputs from the resolvers and encoders emulated by the block.These signals are:
- Theta_sensor: Angle of the resolver/encoder pair as received from the Theta (i) input.
- sin_res, cos_res, car_res: The resolver sine modulation, cosine modulation and carrier, respectively.
- A, B, Z: The encoder A and B quadrature-encoded digital signals, and Z the revolution reset flag. One "Z" pulse occurs per turn, when the angle is close to zero.
Characteristics and limitations
This block has no special characteristics.
Direct Feedthrough | N/A |
Discrete sample time | N/A |
XHP support | N/A |
Work offline | NO |
If you require more information, please contact https://www.opal-rt.com/contact-technical-support/.