LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

What is the size of a string data type

Hello,

 

What is the size of a string data type. Also what is the maximum size upto which a text file can grow?

 

Thanks in advance

cooldude 

0 Kudos
Message 1 of 4
(3,974 Views)

Hi cooldude,

 

the size of a string is given back by the function "String size". Strings are dynamically managed in LabView.

 

The max filesize is limited by the used filesystem. FAT-based systems are limited to 4GB (or was it 2GB?), other filesystems may allow more...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 4
(3,968 Views)

If what you're looking for is a description of the memory layout of a string, (or any other data type) have a look in the help file section entitled "How LabVIEW Stores Data in Memory"

 

Rod.

 

0 Kudos
Message 3 of 4
(3,937 Views)

The basic size is Length+4 bytes (size descriptor), although that can change if you use a language which uses more than one byte per character. As Rod said, looking at the documentation is the best option.


___________________
Try to take over the world!
Message 4 of 4
(3,911 Views)