Jump to content

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.

Link to comment

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

Link to comment
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

Link to comment
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.

Link to comment

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.

×
×
  • Create New...

Important Information

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