07-27-2009 03:42 PM
Hi-
I've made a new class for LabVIEW, and I'm trying to save it to a file using XML. Attached are pictures showing how I create the file and how I read it, along with the error message I get. I've tried a variety of different methods, and nothing has worked so far. I was wondering if anyone had any tips or examples for saving a class to file via XML.
In the meantime I'll use the method described here:
http://forums.ni.com/ni/board/message?board.id=170&message.id=215511&query.id=672786#M215511
but I would prefer XML for more usability later down the line.
I have also thought of just un-bundling all the data from the structure, saving it via XML, and then just bundling it back up and writing to an instance of the class. This seems like more work than should be necessary, and would have to be re-done every time I modify the class.
It probably goes without saying that I'm pretty new to LabVIEW so hopefully this isn't a stupid error which is obvious to the vets.....
Thanks in advance,
Nate
Solved! Go to Solution.
07-27-2009 04:09 PM
You didn't indicate which version of LabVIEW that you're using, and the last picture is a copy of the first, rather than the error message. This shows it in 8.6, and it seems to work OK:
Side-notes:
07-27-2009 04:12 PM - edited 07-27-2009 04:21 PM
Ahh right you are, the error message is attached to this post.
Thanks for the style tip; I'm giving your method of saving a class a try now.
Edit: Unfortunately your method gives the identical error.
07-27-2009 05:08 PM
07-27-2009 05:34 PM
First- sorry for wany wasted time for uploading the wrong screenshot in the OP.
Second- I solved it! I was about to upload a screenshot of my heirarchy for you to take a look at, but that got me thinking. I re-arranged my heirarchy; this solved the problem.
Now for anyone who had the same problem (Error 1527) :
The first screenshot is my original project heirarchy, which didn't work.
The second is my modified project heirarchy which solved the problem.
Thanks for your help!