parthabe wrote:
I m not very clear about what is the size of the cluster in memory.
Can you explain a bit more of it?
One of the great things about LabVIEW is that you don't actually have to understand these to use LabVIEW. Under most circumstances, they just don't matter. That said, there are cases where it's useful to know these things, and it's good for advanced LabVIEW users at least to be aware of the basic details, even if not know every single one of them.
The cluster is made up of several elements. Each of those elements takes up a certain amount of memory. For example, an I32 uses 32 bits, or 4 bytes. A DBL uses 8 bytes. A string uses [len+4] bytes.
When you put all of them together in a cluster, the total amount of memory needed to hold the data in the cluster is the sum of those numbers. When held in memory, this data can be held in several different places and the cluster will maintain pointers to those memory locations. When you want to save to a file, you need to flatten the data, which means bringing it all into a single memory location, in this case a string.
Here we have an array of clusters, so if you divide the file size by that number, you will know how many elements (clusters) are in the array, because you know the size of each cluster. You should note that this will not work with variable length data (like strings) unless you guarantee that the strings in each element of the array will have the same length.
In any case, be aware that this is just the data of the cluster, not the information about the cluster itself (like element names and types). That information is held in a type descriptor, which is a 1D array of 16 or 32 bit numbers (depending on the LabVIEW version) which have a certain format. This information is not saved when you save the file and you are expected to provide it if you want to get the data back.
This was just a very short explanation. If you want more details, you should search for the LabVIEW data storage white paper, which goes into some more details.
This covers most of those, but I believe the white paper has some more (although it's quite old and doesn't talk about newer data types).
___________________
Try to take over the world!