LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Write/read arrays of clusters to/from file

Hi,

I have a problem when trying to read an array of clusters from a file.
I have a multiple set of parameters stored as an array of clusters that I
want to be able to write to a file and later read back.

Is there any special things to do when handling arrays of clusters?

If I do the same operation without putting the cluster in an array
everything works ok.

/Thomas
0 Kudos
Message 1 of 4
(3,157 Views)
There's nothing special you have to do.

I just did this exact thing a few weeks ago. I'm not sure how much I can
help -- it depends entirely on how you wrote to your file. I just used plain
text and created a comma-delimted file.

My cluster array's clusters included all sorts of data types (including other
arrays). What I did was to create one huge array in the beginning, and then
parsed it (I knew one array element from another because I timestamped them
when they were created, so it acts like an ID number). Then I just rebuilt
the cluster/arrays.

Rick
--

rick@csciences.com

Chesapeake Sciences Corp.
1127B Benfield Blvd Millersville, MD 21108

Tel: (410) 923-1300 x3430 Fax: (410) 923-2669
0 Kudos
Message 2 of 4
(3,155 Views)
i am using lab view-8, i have problem in to  read file (out put -data ) is connected to cluster(o/p).
in cluster i have taken (user,date,time ) and (1d array of max,min,rtd values )its also out put .is it correct r this on take it as control r indicator which one is correct
and how to connect them .
0 Kudos
Message 3 of 4
(2,913 Views)

Hello Umesh,

LabVIEW 8.0 makes it a little easier read and write cluster data to a file.  If you have the cluster that you would like to use, you can just connect a control or constant version of this cluster to the Create/Open/Replace Datalog vi.  You can then create an indicator from the Read VI.  This will give you an array of data from the datalog file. 

Steven T.

Message 4 of 4
(2,891 Views)