Products & Services Solutions Academia Support User Community Company

Learn more about Communications Toolbox   

Methods Allowing You to Communicate with the Error Rate Test Console at Simulation Run Time

Getting Test Inputs From the Error Rate Test Console

At simulation time, the communications system you design can request input data to the Error Rate Test Console. To request a particular type of input data, the system under test must register the specific input type to the Error Rate Test Console. The system under test calls getInput(obj,inputName) method to request test inputs to the test console.

For an Error Rate Test Console, 'NumTransmissions' or 'RandomDiscreetSource' are acceptable selections for inputName.

The system under test provides the following inputs:

Getting the Current Simulation Sweep Value of a Registered Test Parameter

For each simulation iteration, the system under test may require the current simulation sweep values from the registered test parameters. To obtain these values from the Error Rate Test console, the system under test calls the getTestParameter(sys,name) method.

Logging Test Data to a Registered Test Probe

At simulation time, the system under test may log data to a registered test probe using the setTestProbeData(sys,name,data) method.

Logging User-Defined Data To The Test Console

At simulation time, the system under test may log user-data to the Error Rate Test Console by calling the setUserData method. This user-data passes directly to the specific user-defined metric calculator functions. Log user-data to the Error Rate Test Console as follows:

setUserData(sys,data)

  


Free Early Verification Kit

Learn how to apply early verification to your development process through these technical resources.

How much time do you spend on testing to ensure implementation meets system-level requirements?

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS