Use the Error Rate Calculation block to compute the errors for selected samples in a delayed received frame.
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 is used to select 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]
.
Note that the Rx
frame introduces two samples errors by switching two of the samples. A Delay
block adds a specified delay to the received data.
Run the model with the delay is 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 2 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