ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

storing cluster data in a file

I have a cluster array of numeric indicators.
How to store this data in an excel format?(or anyother format from which I can read the data back) I use Version 6.0
Veena
0 Kudos
Message 1 of 3
(2,987 Views)
If you only have numerics in your cluster, you can convert this cluster to an array of numerics.
You find this function in Cluster/cluster to array.
If you have arrays of numeric in your cluster you should unbundle these and add to each other before you use write to spreadsheet file.
Attention this does not generate an excel file but a tab delimited text file. This is readable by labview and also by excel.
greetings from the Netherlands
0 Kudos
Message 2 of 3
(2,987 Views)
If your purpose is to simply restore a previous set of values from one session to another, or to provide a choice of different data sets, your easiest method is a flattened string file.

Just wire your cluster array into the Flatten To String function and into Write Characters To File VI.

To read the file, just wire Read Characters From File into Unflatten From String. Use the empty cluster array indicator as the data type.

Another option is to write an XML file, but that requires LV61 or the OpenG toolset.
Michael Munroe, CLD, CTD, MCP
Automate 1M+ VI Search, Sort and Edit operations with Property Inspector 5.1, now with a new Interactive Window Manager!
Now supports full project automation using one-click custom macros or CLI.
Message 3 of 3
(2,987 Views)