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?

 Accepted Answer

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.

More Answers (0)

Categories

Products

Release

R2017b

Community Treasure Hunt

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

Start Hunting!