Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

Exchange data via network UDP with data like array of doubles

How can I exchange data like arrays of doubles or other data types via network UDP?
I want to exchange data between LabView on computer A and an application on computer B. With the LabView program I try to receive an array of doubles from the other application, but with the "Read UDP.vi" I can only read strings. Now I'm looking for a solution for this problem, maybe somebody knows a component with which I can solve this problem.
0 Kudos
Message 1 of 2
(3,824 Views)
I can not think of a way around Read UDP.vi outputing strings. If the strings are comming through (ie they change with changing data), you can look at the hex by right clicking on the indicator and selecting hex display. With this information, you might be able to decode how the application on computer B encoded the data and recreate the data sructure yourself.
There is a Flatten to string.vi and Unflatten from Sting.vi but I would be very surprised if they worked with the code from computer B.
If the app can save to a file, you can write a little LV program to read the data and relay the information. The key again is being able to make sence of the saved file.
0 Kudos
Message 2 of 2
(3,824 Views)