Main Content

PIL

PIL Communication interface

Select the type of Processor-In-Loop (PIL) communication interface to run your model in external mode.

Default: Serial

  • TCP/IP

When you select PIL Communication interface as 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.

PIL Baud Rate (UART) Baud rate

This is the PIL baud rate used by the target. This is based on the baud rate that you specify in the Desired Baud rate (in bits/sec) parameter for UART0.

See Also