Main Content

External Mode

Communication interface

Select the type of communication interface to run your model in external mode.

Default: XCP on Serial

  • XCP on Serial

  • XCP on TCP/IP

When you select Communication interface as XCP on Serial, consider the following limitations:

Note

  • Your antivirus software or firewall might block UDP/TCP traffic. Configure the software to allow traffic from a specific IP port number.

  • Due to RAM memory limitations on the F2838x(ARM Cortex-M4), loading application to RAM is not supported for this block.

  • CPU Timer 2 of F2838x Arm Cortex-M core (Connectivity Manager) provides time base to lwIP stack. It is configured to trigger an interrupt every 1 ms. This timer should not be re-configured if Ethernet blocks are being used in the model. If the corresponding interrupt is armed through Hardware Interrupt block, it will run the interrupt handler every 1 ms.

Serial port in MATLAB preferences

Lists the COM port entries available in the device manager and saved COM port in MATLAB preferences of the target hardware. You can select the required COM port from the drop-down.

The COM port value will be saved as MATLAB preference for a given target instead of model. For example, if you choose a same target for a new model, the serial port saved in MATLAB preferences will be selected automatically.

Click refresh to see the latest value serial port value stored in MATLAB preference for the given hardware board and updated list of serial ports available from device manager.

You can also set the serial port in MATLAB preferences for the given hardware board using the MATLAB command:

codertarget.tic2000.setSerialPortPreferences(Hardware board, CPU value, Serial port)
Here CPU value is optional argument.

To know the COM port used by the target hardware on your computer, see Serial Configuration for External Mode and PIL.

Refresh

Lists the new COM port entries available in your device manager.

Click refresh to see the latest value serial port value stored in MATLAB preference for the given hardware board and updated list of serial ports available from device manager.

Verbose

Select this to view the external mode execution progress and updates in the Diagnostic Viewer or in the MATLAB command window.

Set logging buffer size automatically

Select this to automatically set the number of bytes to preallocate for the buffer in the hardware during simulation. By default, the Set logging buffer size automatically parameter is selected. If you clear this parameter, Logging buffer size (in bytes) parameter becomes available, where you can manually specify the memory buffer size for XCP-based External mode simulation.

Maximum number of contiguous samples

Specify the maximum number of contiguous samples to be packed in a single packet. Memory consumed on the target will increase with increasing value as contiguous needs to be stored on target before transmitting.

See Also

|