04-24-2017 01:59 PM
Hi all,
I am currently trying to send some double data from LabView to Simulink through UDP.
I have went through testing the UDP between LabView and LabView and it works.
However, I am unclear how to send the data to Simulink.
From what I have gathered from a previous forum, is that I have to first convert it to a string using the 'Flatten to string' function before sending it over to Matlab. However, what is the data being sent to Simulink (a string I would assume, but the 'Scope' function doesn't show what I want) and how do I get that data to be displayed/ sent properly.
Please see below attached setup of the UDP in LabView and Matlab
Sorry for the trivial question.
Thank you all very much for your time and really appreciate the help!
Solved! Go to Solution.
04-25-2017 08:47 AM
Hi JustinYeoh,
I have not worked with Simulink, but it would seem like a common sense thing to do to keep the data types consistent across LV and Simulink. As I can see, you are trying to read doubles in Simulink, so I would also try sending doubles from LV.
Unrelated:
Sending data generated using "Flatten to String" function doesn't strike me as a great idea, as I am not sure how is Simulink supposed to decode the flattened string. You can use "Format into String" to get more human-readable version of the string, which should be decodable in most software environments.
Hope it helps!
04-25-2017 01:32 PM
Thank you very much for the reply!
I managed to get it working with your advice!
04-17-2018 01:27 PM
hy i dont how i can send data for labview to simulink you can help mee