When installing SDK7.1 on Windows 10 you will be greeted with some errors, see: 1, 2
Found a Windows10 specific guide on how to fix this here, here and here.
Download and Install Matlab 2013b
Install compatible compiler (see above)
Install the xPC real-time libraries
Type xpcexplr
and create the 2 targets with the following settings:
This can also be done through code:
tgfree=xpctarget.xpc('TCPIP', '192.168.1.10', '22222'); tgbasis=xpctarget.xpc('TCPIP', '192.168.1.20', '22222');
Connect host PC to network switch inside of the Target PC.
Set you (windows) network settings:
Control Panel\Network and Internet\Network and Sharing Centre
-> Change Adapter Settings
.Properties...
. Under the Network tab, double-click Internet Protocol Version 4 (TCP/IPv4)
.192.168.1.xx
- replace xx
with an non-used number in the network (between 2 and 255).255.255.255.0
xpcexplr
and try to connect to the targets you created earlier. If this works, you have set up your connection.