LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

simulink and labview syncronization

I have a simulink model that has inputs controlled by Labview and outputs displayed in Labview. On my desktop computers the simulink and labview are running in sync, their times are always together. When I load the programs onto my two laptops, the simulink model is running 2-10 times faster than the Labview program, and when I change controls in Labview, they don't take effect in simulink unless I change the control MANY times. I think this lack of communication between labview and simulink on my laptops is happening because they are out of sync, but not sure, any suggestions?
0 Kudos
Message 1 of 2
(2,601 Views)
Hello,

You mentioned that the program works fine when you are using a desktop, is simulink and LabVIEW running together on the same desktop or do you have them networked together? By default simulink communicates through port 6011 using TCP/IP. It possible that for some reason that the communication is inhibited by some process on your laptop that is also using that port and causing only some of the simulink data to get through. It is possible to change ports when starting simulink if you know that a port is blocked or being used by another process. When starting the SIT server, type NiMatlabServer ('start',xxxx) You can choose any port that you want, but many times firewalls will close ports. Each firewall is different so you will have to look into what ports that you have available for TCP/IP communication with the SIT server. Have a great day.

Regards,

Danny G.
Applications Engineer
National Instruments
0 Kudos
Message 2 of 2
(2,581 Views)