Communications Blockset    

Error Rate Calculation

The Error Rate Calculation block, in the Comm Sinks library, compares the decoded bits to the original source bits. The output of the Error Rate Calculation block is a three-element vector containing the calculated bit error rate (BER), the number of errors observed, and the number of bits processed.

In the mask for this block, shown below, the Receive delay parameter is set to 96, because the Traceback depth value of 96 in the Viterbi Decoder block creates a delay of 96. If there were other blocks in the model that created delays, the Receive delay would equal the sum of all the delays.

See Computing the Error Rate for details.


 Viterbi Decoding Stopping the Simulation