LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Simulink and LabVIEW data communication

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

0 Kudos
Message 1 of 5
(5,097 Views)

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.


LabVIEW Champion, CLA, CLED, CTD
(blog)
0 Kudos
Message 2 of 5
(5,087 Views)

See this white paper for implementing DDE:

https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000019LMUSA2&l=en-US

 

 

 

0 Kudos
Message 3 of 5
(5,063 Views)

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.

0 Kudos
Message 4 of 5
(5,042 Views)

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 

0 Kudos
Message 5 of 5
(5,013 Views)