Calculate Errors for Delayed Selected Samples
Use the Error Rate Calculation block to compute the errors for selected samples in a delayed received frame.
Explore the Model
The model includes two error calculation paths. In the top error calculation path, the Error Rate Calculation block computes errors on each full frame of data. In the bottom error calculation path, the Error Rate Calculation block computes errors on the first three samples in each frame of data and the Sel input port specifies samples from the frame to include in the error calculations. Any delay in the received samples must be accounted in the input to the Sel port.
Each
Tx
frame contains the integer sequence[1 2 3 4 5 6 7 8 9 10]
.Each
Rx
frame contains the integer sequence[1 3 2 4 5 6 7 8 9 10]
.
The Rx
frame introduces two samples errors by switching two of the samples. A Delay
block adds a specified delay to the received data.
Running the Model
Run the model with the delay set to 0
.
With delay = 0 Sample error rate | # errors | # samples Full frame: 0.200 | 20 | 100 Sub frame: 0.667 | 20 | 30
Run the model with the delay set to 2
. The delay in the received samples is included for the input to the Sel port. The full frame error calculation skips two samples due to the receive delay setting.
With delay = 2 Sample error rate | # errors | # samples Full frame: 0.204 | 20 | 98 Sub frame: 0.667 | 20 | 30