Calculate Errors for Delayed Selected Samples
Use theError Rate Calculationblock 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, theError Rate Calculationblock computes errors on each full frame of data. In the bottom error calculation path, theError Rate Calculation在前三个样品我块计算错误n each frame of data and theSelinput 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 theSelport.
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]
.
TheRx
frame introduces two samples errors by switching two of the samples. ADelay
block adds a specified delay to the received data.
Running the Model
Run the model with the delay set to0
.
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 to2
. The delay in the received samples is included for the input to theSelport. 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