Maximum Length of a String in LabVIEW

Updated Dec 18, 2017

Reported In

Software

  • LabVIEW 7.0 Full
  • LabVIEW 7.0 Base

Issue Details

I am using LabVIEW 7 (or higher) and I would like to use very large strings in my application. Is there a maximum length that my string can be?

Solution

The maximum length that a string can be in LabVIEW, is up to 232 - 1 characters. This means that your string can have up to 4,294,967,295 characters. 

Additional Information

LabVIEW stores strings as a pointer to a structure containg a 4-byte length value followed by a 1D array of byte integers(8-bit characters). The 4-byte value is the same size as a U32, which has a 232 range (0 to 4,294,967,295).   That being said, your system memory (RAM) can be a limiting factor as it's size determines the amount of information you can store. 

WAS THIS ARTICLE HELPFUL?

Not Helpful