in reply to Sending UDP Packets to MATLAB

This is the content in this posting(node 1170337) that the OP chose to delete:

Quote:
Sending UDP Packets to MATLAB

Hello ,
My Background in Perl: 5 Days of Experience in using Perl

Task where I am stuck at :

1) I have a radio which outputs 10 values at a given time stamp. I need to send those 10 Values as a single UDP packet via Ethernet connected to Another Hardware managed by MATLAB/Simulink.

2) I wrote a Perl Script which gives me a string of all values like $data = '2.2,4,6,7.43,23.34,11,45576,343,22,10' ..

3) MATLAB/Simulink blocks (related to my hardware) doesn't accepts strings . It needs numbers of type (Boolean,int8,unit8,int16,uint16,int32,uint32,float,double) and have big Endian format...

4) Coming to my application , I can only receive 32 Bit Word input data stream so that decode block converts back into an array of 10 numbers... (There is no way I can know the functionality of Decode block so that I can encode in the same way in my perl script.)

Can anyone please help me in this regard as to tell how can i send those bunch of numbers in a single UDP packet.

I believe its similar to pack/unpack functions in Perl . Except the fact that Unpack is Decode block in Simulink. I have to PACK the data to either of Datatypes above mentioned with any possible delimiters
End Quote.

        "Software interprets lawyers as damage, and routes around them" - Larry Wall