LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Why does Read from Text file default to array of 9 elements

Solved!
Go to solution

I am writing to a text file starting with a type def. cluster (control) of say 15 dbl numeric elements, that works fine I open the tab-delimited text file and all of the elements appear in the file.  However when I read from the same text file back to the same type def. cluster (indicator), the read from text file defaults to 9 elements?? Is there a way to control how many elements are read from the file.  This all works great when I initially use a cluster of 9 elements and read back to a cluster of 9 elements.

0 Kudos
Message 1 of 12
(1,539 Views)
Solution
Accepted by BoomerSooner

From the LabVIEW Help: http://zone.ni.com/reference/en-XX/help/371361G-01/glang/array_to_cluster/

 

 

Converts a 1D array to a cluster of elements of the same type as the array elements. Right-click the function and select Cluster Size from the shortcut menu to set the number of elements in the cluster.

The default is nine. The maximum cluster size for this function is 256.

 

 

 

Aside: so, how many times has this question been asked over the years?

0 Kudos
Message 2 of 12
(1,538 Views)

Wow the solution was staring me right in the face, usually the case.  Thanks a bunch.  I am new to Labview and this forum so I apologize in advance for asking questions that have already been answered.

0 Kudos
Message 3 of 12
(1,530 Views)

The default is nine

 

Aside: so, how many times has this question been asked over the years?



Does anybody know why it is nine?

=====================
LabVIEW 2012


0 Kudos
Message 4 of 12
(1,520 Views)

No, but I'm curious

0 Kudos
Message 5 of 12
(1,513 Views)

@Steve Chandler wrote:

The default is nine

 

Aside: so, how many times has this question been asked over the years?



Does anybody know why it is nine?


Because it is 1 less than 10?

0 Kudos
Message 6 of 12
(1,506 Views)

@fdinoff wrote:

@Steve Chandler wrote:

The default is nine

 

Aside: so, how many times has this question been asked over the years?



Does anybody know why it is nine?


Because it is 1 less than 10?


If that is the reason then wouldn't the default be 1?

 

=====================
LabVIEW 2012


0 Kudos
Message 7 of 12
(1,502 Views)

Well..

  • Cats have 9 lives. 
  • 9 is considered a lucky number in Chinese culture.
  • There are 9 Heegner numbers.
  • There used to be 9 planets in the solar system.
  • There were 9 rings of power given to the race of men in Middle Earth. (I'm guessing this is the real reason.)
0 Kudos
Message 8 of 12
(1,498 Views)

It must have something to do with that famous Ed Wood film.

 

=====================
LabVIEW 2012


0 Kudos
Message 9 of 12
(1,491 Views)

I think it's got something to do with the nine circles of hell

0 Kudos
Message 10 of 12
(1,473 Views)