09-10-2015 07:37 AM
Hi,
I am new to LabVIEW, now I want to try myself to let Simulink and LabVIEW communicate: data flows from Simulink to LabVIEW and vice verse.
I just want to show one result from PID in Simulink to LabVIEW interface...
I read something that I can use DDE, DLL, MIT etc. But I do not have MIT, and I did not find any clear instruction about DDE or DLL.
So I am wondering if anyone can provide some clear or step by step instruction about this? Maybe through TCP/IP or UDP connection?
Please I would be very appreciate for your help. Thanks a lot.
BR
EmmaFInn
09-10-2015 07:57 AM
Which version of LabVIEW are you using? In 2013 and newer (I think?), you are right that it is the Model Interface Toolkit (MIT) that allows you compile simulink models into a DLL which you can then run in LabVIEW (in real-time, if you have an RT target). The MIT is part of the Veristand installer - if you have a license that includes use of the MIT that's probably the best way to go.
I'm not sure about other ways as I don't know what communications methods you can use from the Simulink/MATLAB side - LabVIEW supports TCP/IP, UDP, Serial etc. so if you can figure out that side then we can probably assist with the LabVIEW side.
09-10-2015
02:55 PM
- last edited on
11-19-2025
05:52 PM
by
Content Cleaner
See this white paper for implementing DDE:
https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000019LMUSA2&l=en-US
09-11-2015 01:32 AM
Thanks for your replies. I am using LabVIEW 2015 and Matlab 2013a. I just saw one example http://forums.ni.com/t5/LabVIEW/Data-transfer-LabView-Simulink-through-UDP/td-p/1517084/highlight/tr... Hope I get something started from here.
09-11-2015 07:01 AM
Hi,
I have been working the whole day....still can not get it work...
I found some example in LabVIEW, where inside LabVIEW Client and Server can communicate with TCP/UDP. . And within Simulink it is also doable to communicate with TCP/UDP.
However, I just can not get those 2 connected....please can you help me little with this...
Attached is my simpleSimulink model, I just want to get the sin wave showed in LabVIEW. Please do help me out. thanks a lot