This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Signal Monitoring and Parameter Tuning with External Mode

With external mode, you can log signals and tune parameters while the model is running on the target hardware in real time. When you change parameter values from within Simulink, the modified parameter values are communicated to the target hardware immediately. You can monitor the effects of the parameters tuning activity by viewing the algorithm signals on the scopes.

To prepare your model for external mode:

  1. In the Configuration Parameters dialog box, select Hardware Implementation > Hardware board > ARM Cortex-based VEX Microcontroller.

  2. Under Target Hardware Resources, select External Mode.

  3. For setting the COM port automatically, in the Set host COM port parameter, select Automatically option.

    For setting the COM port manually, in the Set host COM port parameter, select Manually option.

  4. If you select the Manually option for Set host COM port parameter, specify the corresponding COM port in COMPort parameter.

    1. To find the COM port on your Windows® computer, select Start > Control Panel > Device Manager > Ports (COM & LPT).

    2. To find the COM port on your Mac computer, open a terminal window and enter the following command:

      ls /dev/cu.usb*.

      This command lists the path and file name of the USB device that is connected to the VEX® hardware.

      For example: /dev/cu.usbmodem1410

  5. Make sure that you select the Verbose check box to view the external mode execution progress and updates in the Diagnostic Viewer or in the Command Window.

Your model is now ready to run in external mode.

To run your model in external mode on your computer:

  1. Select Simulation > Mode > External.

  2. Click the Run button.