Labview Matlab TCP data exchange

Hi all!
I manage to exchange data between Labview and Matlab with the TCP/IP App. But with a similar method using labview and matlab tcpclient function, I can not read data from labview or write data to labview any more.
In general, we use
echotcpip("on",port)
t = tcpclient('localhost',port,'Timeout',10); % start a TCP client
start a TCP client, but how can I read data from Labview using
read(server, count) % read data from a server, in this case, Labview
function since my server is Labview in this case?
Thank you in advance!

2 个评论

Hi Walter,
Thanks for your sugguestion! I have solved the problem following your advice!
I used read(t, count) at the beginning, but it did not work.
I guess the problem is the code echotcpip("on",port). After I delete echotcpip("on",port), then the read(t, count) works as I want.
Many thanks!
best

请先登录,再进行评论。

回答(0 个)

类别

帮助中心File Exchange 中查找有关 LabVIEW 的更多信息

标签

提问:

2022-2-22

评论:

2022-2-22

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by