01-18-2011 10:53 AM
Could you please post the code that you are trying?
Perhaps you have a typo (or whatever a typo would be called in a graphical environment)
01-18-2011 10:57 AM
here is the code.
01-18-2011 12:16 PM
You have to wire the output of read tcp directly into unflatten from xml. If the xml does not match what you wire to the type specifier then you will get this error. It looks like you are prepending the string you send with the size. Make sure you remove those size bytes before you wire into uflatten from xml.
Instead of an array of strings you could flatten a type defined cluster to xml and send that. It looks like you are sending other data besides an array. Replace the string array constant wired into the type specifier of unflatten from xml with a cluster constant of the typedef.
Place a probe or an indicator on the output of flatten to xml. Place another probe or indicator on the input to unflatten from xml. They need to be identical (same xml structure). Look for what is different and go from there.
01-18-2011 12:39 PM
If you dont want the XML, the tab delimited (assumining no tabs in a string command) is 'format to string' and 'scan from string' with %s\t%s\t%s formater. not as flexible as xml but very easy to do.
01-18-2011 12:41 PM
thank you everyone for the help,you guys are great.i finally did it.