Why does a String in a Cluster have Four Extra Bytes?
Primary Software Version: 8.0
Primary Software Fixed Version: N/A
Secondary Software: N/A
I have a string of a known length in a cluster and I am inputting that cluster into the
Strings in clusters always contain the string length information when flattened. That information is stored as a U32 integer. Therefore, the length of the flattened string is the length of input string (n number of bytes) plus the string length information (four bytes). The resultant string length is n + 4 bytes.
You can view this information if you wire an indicator to the output of the
This shows on the front panel the enclosed string's actual length as well as the output string from the
KnowledgeBase 3JDINGHB: In LabVIEW, Is There a Maximum Length of a String?
Developer Zone Tutorial: Arrays and Clusters
Report Date: 01/02/2009
Last Updated: 12/04/2013
Document ID: 4T1B42GF