LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Save and read a cluster

Solved!
Go to solution

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 🙂

0 Kudos
Message 1 of 11
(5,234 Views)

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.

-----

The best solution is the one you find it by yourself
0 Kudos
Message 2 of 11
(5,228 Views)

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.

0 Kudos
Message 3 of 11
(5,220 Views)

Ok i'll try with the XML method, I'll keep you informed of my success or failure

 

Thanks

0 Kudos
Message 4 of 11
(5,216 Views)

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:

 

 

0 Kudos
Message 5 of 11
(5,199 Views)

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!

 

 

Message 6 of 11
(5,192 Views)
Solution
Accepted by topic author demum

@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 RaySmiley Wink

Here is a quick example of P's comments

a.png 


"Should be" isn't "Is" -Jay
Message 7 of 11
(5,186 Views)

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... 

0 Kudos
Message 8 of 11
(5,176 Views)

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 Smiley Wink .

 

 

Download All
Message 9 of 11
(5,151 Views)

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?

0 Kudos
Message 10 of 11
(5,048 Views)