LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

TCP/IP Connection: Labview & Simulink Communicate Problem

Solved!
Go to solution

This is my TCP Client.

TCP Client Communitcate Data for LABVIEW.PNG

This is my Simulink TCP Server.

TCP Server Communitcate Data for Simulink.PNG

This is my Stream Output Setting.

TCP Protocol[1000].PNGTCP Protocol[1000] Board Setup.PNG

This is my Stream Input Setting.

TCP Protocol[1500].PNGTCP Protocol[1500] Board Setup.PNG

I can send data from Simulink which the data type is double to Labview which the data type is String ,but My problem is that I can't Receive data from Labview which the data type is String to Simulink which the data type is double.

 

Please heip me.

0 Kudos
Message 1 of 3
(2,453 Views)
Solution
Accepted by topic author jackhuang8686

Hello, jackhuang8686.

Because the Simulink is represented as double, he can read string data incorrect. If you want to receive string data from LV with numeric representation, you can use Fract/Exp String to number function, which will output double data type and will convert your string data correctly

0 Kudos
Message 2 of 3
(2,315 Views)

Thank you very much, this help me a lot.

0 Kudos
Message 3 of 3
(2,249 Views)