Jump to content
Sign in to follow this  
oskarbosch

How to save Cluster to a file?

Recommended Posts

I am new for LabVIEW. I have learned a lot from this forum. It's very helpful.

I have a cluster with several different data types (Number, String). Any simple way to save it to a spreadsheet? I have tried to change all the members to string type and write as an array.

I have some trouble to read strings from the saved file. How to read one string by another if several strings are saved in one line with only some "block" seperator between them?

Any other better solution?

Thanks.

Share this post


Link to post
Share on other sites

There are two easy ways to approach this :D :

1/ Use the OpenG commander and use the package that handles variants.

There is a very useful function that writes a cluster immediatly to an INI file!!

(see this link: http://www.openg.org/content/category/4/67/45/)

2/ use the labview cluster to XML string and vice-versa approach.

Then write this XML string to a file / read the string from a file.

Oskar

Share this post


Link to post
Share on other sites
There are two easy ways to approach this :D :

1/ Use the OpenG commander and use the package that handles variants.

There is a very useful function that writes a cluster immediatly to an INI file!!

(see this link: http://www.openg.org/content/category/4/67/45/)

2/ use the labview cluster to XML string and vice-versa approach.

Then write this XML string to a file / read the string from a file.

Oskar

Thanks, Oskar.

When I go to that OpenG link, it seems I should download something(openg_commander-2.0-alpha3.zip).

What is in that zip file and how to use it?

Maybe this is a stupid question. I am a newbie and have never heard of OpenG before. :blink:

Kang

Share this post


Link to post
Share on other sites
Thanks, Oskar.

When I go to that OpenG link, it seems I should download something(openg_commander-2.0-alpha3.zip).

What is in that zip file and how to use it?

Maybe this is a stupid question. I am a newbie and have never heard of OpenG before. :blink:

Kang

That's OpenG Commander. Read the Quick Start Guide for instructions on how to install and get the OpenG goodies into your system.

Share this post


Link to post
Share on other sites

For my case, write/read XML solves the problem. I am glad that the program looks simpler.

I will try the OpenG later. I believe it will be a great help if I want to be a good LabVIEW programmer.

Thanks, Oscar and Jim.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.