07-03-2003 12:18 AM
07-03-2003 06:00 AM
Blog for (mostly LabVIEW) programmers: Tips And Tricks
09-30-2004 04:34 AM
09-30-2004 08:48 AM
09-30-2004
10:22 AM
- last edited on
06-21-2026
10:40 AM
by
Content Cleaner
> I've been following the steps you have indicated,
> but I get an error when I try to send the numbers
> array resulting of flattening a especified cluster
> ("type string output" of the function "Variant to
> Flattened String").
>
> After sednding the flattened data, how can I send
> the array?. I get an error when I try it, and this
> is necesary for being able to unflat the string
> received on the other side.
All data is contained in the string, the type string is just an empty shell, telling the "shape" of the original data. Just create a diagram constant of the same data type and copy it to the receiving VI.
(See also 096.14&EXT=gif>this picture that I posted in this thread [broken link removed]).
03-20-2012 02:08 PM
Hello guys,please i have attached below the server and client sceen shots of a simple TCP/IP communication i am trying to do.When i run both vis i get an error message saying "LabVIEW: Unflatten or byte stream read operation failed due to corrupt, unexpected, or truncated data." Please can you look at both screen shots and let me know what i am doing wrong?if possible give me a step by step solution on what to do.Thanks
Osowoaji
03-20-2012 02:14 PM
Elimiate the typecast operations, they make no sense.
Convert your data to a 1D DBL array and flatten to string. Send via network. On the other end, unflatten the received string to a 1D DBL array.
03-20-2012 02:38 PM
Hi there and thanks for the reply.This is what i have done but its still giving me the same error message.I'm i still doing it wrong?
Osowoaji
03-20-2012 02:43 PM
@osowoaji wrote:
Hi there and thanks for the reply.This is what i have done but its still giving me the same error message.I'm i still doing it wrong?
Osowoaji
Let's try to keep the questions in a single thread.