Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
1 ratings:
 5 out of 5     Rate this Document

How Can I Programmatically Obtain the Size of a Cluster?

Primary Software: LabVIEW Development Systems>>LabVIEW Base Package
Primary Software Version: 8.6
Primary Software Fixed Version: N/A
Secondary Software: LabVIEW Development Systems>>LabVIEW Full Development System

Problem:
I don't want to manually count the byte size of a cluster in LabVIEW, how can I do it programmatically?

Solution:
The byte size of a cluster can be obtained programmatically by using the Flatten To String.vi and String Length.vi.



The result numeric value indicates the number of bytes the cluster occupies.

Related Links:
KnowledgeBase 47CJCUPZ: Differences Between Flatten to String.vi and Variant to Flattened String.vi
KnowledgeBase 2Y59HV00: Can I Programmatically Set A Cluster's Size?

Attachments:





Report Date: 08/28/2008
Last Updated: 09/23/2008
Document ID: 4ORGPQUQ

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit