Switch External Mode Configuration - Configure model for external mode or executable building

Library

Target Support Package FM5/ MPC555 Driver Library/ Utilities

Description

Place the Switch External Mode Configuration block in your model and double-click it to run a convenience function to configure your model for building an executable or executing your model in external mode. When you double-click the block, a dialog appears. Choose either Building an executable or External mode, and click OK.

When you choose building an executable, messages at the command line inform you the following steps are taken to configure your model:

  1. Inline parameters are selected (under Optimization in the Configuration Parameters dialog box). This is required for ASAP2 generation

  2. Normal simulation mode is selected (in the Simulation menu, and drop-down list in the toolbar).

  3. ASAP2 is selected as the Interface (under Real-Time Workshop > Interface, in the Data Exchange pane, in the Configuration Parameters dialog box).

When you choose external mode, messages at the command line inform you the following steps are taken to configure your model:

  1. Inline parameters are selected (under Optimization in the Configuration Parameters dialog box). This is required for external mode.

  2. External simulation mode is selected (in the Simulation menu, and drop-down list in the toolbar).

  3. External mode is selected as the Interface (under Real-Time Workshop > Interface, in the Data Exchange pane, in the Configuration Parameters dialog box).

See Using External Mode for instructions for converting a model to use external mode for signal logging and parameter tuning.

  


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