06-26-2012 09:46 AM - edited 06-26-2012 09:51 AM
hello,
I'm a student and i have to realize and LV application.
I already made the most of the program but I have a problem with the data saving.
I use a complex cluster (composez of other clusters etc..), I can save it as binary file but i'm not able to open it and read it.
I joint the post an simple VI to explain the composition of the cluster.
this may be a stupid question but i'm a beginner with LabView so i still have problems to understand some LV logics
Thanks for reading and maybe the help 🙂
Solved! Go to Solution.
06-26-2012 09:57 AM
You cannot read the binary file directly you have to use the read from binary file function and wire the same cluster which you are writing and read it as a cluster. One other option is you can save the cluster as an xml file and you can use any xml editor or a browser to read the content of the file.
06-26-2012 10:09 AM
I use the xml method that P Anand described because it is very easy to rebuild the cluster.
I would use the bnary method if I did not want anyone to easily see the contents of the cluster.
06-26-2012 10:17 AM
Ok i'll try with the XML method, I'll keep you informed of my success or failure
Thanks
06-26-2012 11:41 AM - last edited on 06-26-2012 02:58 PM by MaryH
I don't know if the stuff in the posted examples would be of any help, as they may or may not use clusters.
But what the heck.. if it helps, then all the better:
06-26-2012 12:23 PM
Try downloading VI's from Moore Good Ideas
http://www.mooregoodideas.com/goodLabViewStuff.htm
Thay have a VI that saves or loads anything
You can attach your complex cluster to it, give it a path and be assured it will work pretty darn good.
Its on that web page somewhere. I still use it from time to time when I am feeling lazy 🙂
Good luck!
06-26-2012 12:40 PM - last edited on 06-26-2012 02:58 PM by MaryH
@Ray.R wrote:
I don't know if the stuff in the posted examples would be of any help, as they may or may not use clusters.
But what the heck.. if it helps, then all the better:
He'll have to wait to see that link Ray
Here is a quick example of P's comments
06-26-2012 02:53 PM
ROFL!!!!
I can't believe it finally happened.. I provided a link to a "special" area.
I'll ask the moderator to fix my post.
😄
I knew I was going nuts, I just never had confirmation...
06-27-2012 03:59 AM
Hello,
Sorry for not having responded earlier but i'm in france so i was sleeping 🙂
I create a VI (with your advices ) to try to read random force values of few measures saved with my monster cluster.
It seem's to works well. So i post the VI with a picture.
Thank you very much for your help espetialy Ray.R for is VIP link .
11-09-2012 02:57 PM
I've searched your site (http://www.mooregoodideas.com/goodLabViewStuff.htm) very thoroughly - no .vi files.
I've Google this files and found a following post from 2007.
I've downloaded ZIP archive, unzipped to single folder and tried to use it with Labview 2012.
It failed to load (9 warnings about missing files).
For example 'Insert Reserved Error.vi' missing.
Is there some other package I have to install?