Connect to Linux PC running code using external mode

I have two Linux PCs connected via ethernet, one has MATLAB installed while the other doesn't. I have generated C code from a Simulink model. Now I want to use external mode to run the generated code on the other Linux machine. Is this possible? If yes, how?

 采纳的回答

Yes, it is possible. Here are the additional steps that you need to perform to enable communication between the two PCs through External mode:
1. Please go to the Interface section in the configuration parameters and choose "tcpip" as the "Transport layer" (the "External mode" checkbox should be enabled).
2. Now specify the required arguments in the "MEX-file arguments" box (<http://www.mathworks.com/help/rtw/ref/mex-file-arguments.html https://www.mathworks.com/help/rtw/ref/mex-file-arguments.html>).
3. Also, please make sure that the correct "Device vendor" and "Device type" has been set in the Hardware Implementation section of the configuration parameters.

更多回答(0 个)

类别

帮助中心File Exchange 中查找有关 Multicore Processor Targets 的更多信息

产品

版本

R2017b

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by