| Communications Toolbox | ![]() |
A Simulink model must satisfy these requirements before you can use it with BERTool, where the case-sensitive variable names must be exactly as shown below:
The channel block must use the variable EbNo rather than a hard-coded value for Eb/N0.
The simulation must stop when the error count reaches the value of the variable maxNumErrs or when the number of processed bits reaches the value of the variable maxNumBits, whichever occurs first.
You can configure the Error Rate Calculation block in the Communications Blockset to stop the simulation based on such criteria.
The simulation must send the final error rate data to the MATLAB workspace as a variable whose name you enter in the BER variable name field in BERTool. The variable must be a three-element vector that lists the BER, the number of bit errors, and the number of processed bits.
This three-element vector format is supported by the Error Rate Calculation block.
| Preparing Simulink Models for Use with BERTool | Tips for Preparing Models | ![]() |
© 1994-2005 The MathWorks, Inc.