Choose a Serial Communication Interface for PIL Simulation
The Embedded Coder Support Package for Texas Instruments C2000 supports serial communication interface for PIL over SCI-A.
After establishing a serial connection, find the COM port associated with the target hardware.
For more information on how to configure the Virtual COM port refer to this page. Note the COM port number of the USB Serial Port showing in your Windows Device Manager under Ports "(COM & LPT)"
1. Connect the target hardware to your host machine
2. Enable the settings for running PIL on Serial
Set the COM Port as obtained above and replace the 'COM1' in the following command with the correct Serial port corresponding to your controlCARD:
setpref('MathWorks_Embedded_IDE_Link_PIL_Preferences','COMPort','COM1');
Set the baud rate for PIL communication by entering the baud rate as
setpref('MathWorks_Embedded_IDE_Link_PIL_Preferences','BaudRate',115200);
Enable PIL over serial by the following command:
setpref('MathWorks_Embedded_IDE_Link_PIL_Preferences','enableserial',true);