Build procedure for model: 'arduinomega2560_tcpsend' aborted due to an error.
The following error occurred during deployment to your hardware board:
Could not automatically set the host COM port for your Mega 2560 board. This may be due to a disconnected or unrecognized board.
If the board is not connected to your host computer, connect it and let Windows install the board driver.
If the board is connected, update the board driver. Open Windows Device Manager and locate the board either in Other Devices or in COM Ports. Right-click on the board and select 'Update Driver Software...' Next, select 'Browse my computer for driver software'. Specify the search location as C:\ProgramData\MATLAB\SupportPackages\R2018b\3P.instrset\arduinoide.instrset\arduino-1.8.1\drivers and click 'Next'.
If Windows still cannot automatically set the COM port for your board, set it manually. In your model, click 'Simulation ', click 'Model Configuration Parameters'... In the dialog that opens, select the 'Hardware Implementation' pane, click 'Target hardware resources > Host-board connection', change 'Set host COM port' to 'Manually' and set the 'COM port number' to match the port number in Windows.