Compute speed from rotor angular position
Motor Control Blockset / Sensor Decoders
The Speed Measurement block calculates the angular speed from the angular position of the rotor by calculating the change in the angular position with respect to time.
θ
— Angular position of rotorAngular position of the rotor specified in either radians, degrees, or per-unit.
Data Types: single
| double
| fixed point
⍵
— Angular speed of rotorAngular speed that the block computes based on the angular position input.
Data Types: single
| double
| fixed point
Position unit
— Unit of angular positionRadians
(default) | Degrees
| Per unit
Unit of the angular position θ
.
Speed calculation criteria
— Method of speed calculationMaximum application speed
(default) | Speed resolution
| Time interval for speed calculation
The speed calculation method used in the block. The selected method determines the range of the rotor speed that the block can measure.
These parameters change values according to the Speed calculation criteria parameter:
Parameter name | Maximum application speed | Speed Resolution | Time interval for speed calculation |
---|---|---|---|
Delays for speed calculation (number of samples) |
| 28 | 28 |
Maximum measurable speed (RPM) |
| 10344.8276 | 10713.2857 |
Measurable speed resolution (RPM) |
| 4.9892e-06 | 4.9892e-06 |
Block sample time (S)
— Sample time after which block executes again100e-6
(default) | scalarThe fixed time interval (in seconds) between every two consecutive instances of block execution.
These parameters change values according to the Block sample time (S) parameter value:
Delays for speed calculation (number of samples)
Maximum measurable speed (RPM)
Measurable speed resolution (RPM)
Maximum application speed (RPM)
— Maximum measurable rotor speed1000
(default) | scalarThe maximum rotor speed (in rotations per minute) that the block can measure.
These parameters change values according to the Maximum application speed (RPM) parameter value:
Delays for speed calculation (number of samples)
Maximum measurable speed (RPM)
Measurable speed resolution (RPM)
To enable this parameter, set Speed calculation criteria to
Maximum application speed
.
Speed Resolution (RPM)
— Minimum detectable value of change in angular position5e-6
(default) | scalarThe minimum value of the θ
input that the block can
detect.
These parameters change values according to the Speed Resolution (RPM) parameter value:
Delays for speed calculation (number of samples)
Maximum measurable speed (RPM)
Measurable speed resolution (RPM)
Delays for speed calculation (number of samples)
— Number of angular position samples measured299
or 28
(default) | scalarThe number of samples of the angular position input that the block measures to compute the average position value.
These parameters change values according to the Delays for speed calculation (number of samples) parameter value:
Maximum measurable speed (RPM)
Measurable speed resolution (RPM)
To enable this parameter, set Speed calculation criteria to
Time interval for speed calculation
.
Speed unit
— Unit of angular speed outputRPM
(default) | Degrees/Sec
| Radians/Sec
| Per unit based on maximum measurable speed
| Per unit based on dialog
Unit of the angular speed output.
Speed data type
— Data type of angular speed outputsingle
(default) | double
| fixed point
The data type of the angular speed output ⍵
.
Note
The Speed Measurement block may occasionally display the warning message
'Wrap on overflow detected
.'