laokang Posted January 9, 2006 Report Share Posted January 9, 2006 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. Quote Link to comment
oskarbosch Posted January 9, 2006 Author Report Share Posted January 9, 2006 There are two easy ways to approach this : 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 Quote Link to comment
laokang Posted January 9, 2006 Report Share Posted January 9, 2006 There are two easy ways to approach this :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. Kang Quote Link to comment
Jim Kring Posted January 10, 2006 Report Share Posted January 10, 2006 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. Kang That's OpenG Commander. Read the Quick Start Guide for instructions on how to install and get the OpenG goodies into your system. Quote Link to comment
laokang Posted January 11, 2006 Report Share Posted January 11, 2006 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. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.