Archived:Maximum Length of a String in LabVIEW 7.0

Updated Oct 20, 2023

NI does not actively maintain this document.

This content provides support for older products and technology, so you may notice outdated links or obsolete information about operating systems or other relevant products.

Reported In

Software

  • LabVIEW 7.0 Full
  • LabVIEW 7.0 Base

Issue Details

I am using LabVIEW 7 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.