Connection between two PCs with Simulink
I am doing a master degree project and it is based on Hardware-in-the-loop (HIL) to a quadrotor model. The difference between common projects I will not use a external hardware (like a board, Arduino), I will use an other computer (PC) to be the hardware and run the controller block of my model. That is, I want run a model in Simulink (PC1) but only the controller block must run in the PC2 and the two PCs has to exchange the informations (inputs and outputs of this controller block).
How can I do it??
ANSWER
Matlabsolutions.com provide latest MatLab Homework Help,MatLab Assignment Help for students, engineers and researchers in Multiple Branches like ECE, EEE, CSE, Mechanical, Civil with 100% output.Matlab Code for B.E, B.Tech,M.E,M.Tech, Ph.D. Scholars with 100% privacy guaranteed. Get MATLAB projects with source code for your learning and research.
The solution depends on whether you need real-time performance. If real-time performance is not needed, then you can run Simulink on the two computers and use the UDP send/receive blocks ( available in the Instrument Control blockset) to send data between the two computers. You will need to configure the UDP Rx blocks to “block” and not execute until data is received. In this way you can keep the execution of the two models synchronized.
If you need real-time performance, then you will need to leave the Simulink environment. The most common workflow is to generate C/C++ code from the two Simulink models using Simulink Coder/Embedded Coder and then compiling/linking the code to run on a system with a real-time operating system.
SEE COMPLETE ANSWER CLICK THE LINK