Working With the Fixed-Point Advisor

Introduction to the Fixed-Point Advisor

The Fixed-Point Advisor provides a set of tasks to facilitate converting a floating-point model or subsystem to an equivalent fixed-point representation. You can use the Fixed-Point Advisor to prepare a model for conversion and obtain an initial scaling to use as the starting point for refinement and exploration inside the Fixed-Point Tool.

Running the Fixed-Point Advisor

  1. Open a model.

  2. Start the Fixed-Point Advisor by

    The Fixed-Point Advisor dialog opens.

  3. Select the Fixed-Point Advisor folder in the Task Hierarchy pane.

  4. Run the advisor by

    The Fixed-Point Advisor runs the tasks in order until a task fails. A waitbar is displayed while each task runs.

  5. Review the results. If a task fails because input parameters are not specified, select an Input Parameter. Then continue running to failure by right-clicking the task and selecting Continue from the context menu. If the task fails for a different reason, fix the task as described in Fixing a Task Failure.

Fixing a Task Failure

Tasks fail when there is a step for you to take to convert your model from floating-point to fixed-point. For more information on why a specific task fails, see the Fixed-Point Advisor Reference.

You can fix a failure using three different methods:

Automatically Fixing Failures

You can automatically fix failures using the Action box. The action box applies all of the recommended actions listed in the Analysis Result box.

Automatically fix all failures within a task using the following steps:

  1. In the Action box, click Modify All.

    The Action Result box displays the a table of changes.

  2. To verify that the task now passes, in the Analysis box, click Run This Task.

Batch Fixing Failures

If a task fails and you want to explore the results and make batch changes, use the following steps.

  1. In the Analysis box, click Explore Result.

    The Model Advisor Result Explorer dialog box opens.

  2. Use the Model Advisor Result Explorer to modify block parameters.

  3. When you have finished making changes, in the Fixed-Point Advisor dialog box, click Run This Task to see if the changes you made results in the task passing. Continue fixing failures and rerunning the task until the task passes.

  


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