03-25-2010 09:26 AM
03-25-2010 09:32 AM
Right, I've got it type def'd.
I don't think that's what's holding me up right now.
My issue is with the ini file, and failing to read and write.
03-25-2010 09:43 AM
03-25-2010 11:20 AM
krwlz101 wrote:
Alright, this just isn't working, I think I'll try the xlm route.
The problem is that you're never closing the file. You need to call the Close Config Data VI with the "write" set to True.
03-25-2010 11:41 AM
THANK YOU!
I wish I could give you more than one Kudos smercurio!
03-25-2010 11:47 AM
03-25-2010 11:57 AM
03-25-2010 11:58 AM
04-22-2010 08:38 AM
krwlz101 wrote:
Got it. Don't know why I always forget about property nodes.
Hey, You're still learning! you won't always forget ![]()
Nice thread- sorry it took me so long to check back in. Glad the others showed up with good advice for you.
That being said- I'll chime in on a couple of points that Christian and Mark debate:
04-22-2010 08:57 AM
Jeff Bohrer wrote:That being said- I'll chime in on a couple of points that Christian and Mark debate:
- INI vs XML- XML is quite powerful and widely used. understandng the schema (the "formatting Rules") is key to unlocking the power of XML. IMHO there is not a true standardized schema with univesal acceptance
There is no standardized schema for XML. There was never meant to be one. The XML spec doesn't define what your schema is supposed to be. That's for you to decide based on what information you have to transport. Remember that the initial purpose of XML was to provide a generalize encoding method to transport information. Given that, how can there be a standardized schema when there is no standardized information?
... so the format is too limited in scope for a truely portable solution.
Too "limited in scope for a truely [sic] portable solution"? This I disagree with 100%. I think you have a basic misunderstanding of the purpose of XML.
you can't garantee the LV XML schema is compatable with VB, MS Office apps, c# etc....
Why should the LV XML schema be compatible with VB, Office, or anything else for that matter? Consequently, there is no reason why the reverse should be true.
Maybe someday.. but certainly a structure form to watch!
XML doesn't need to be watched anymore. It's been around for more than 10 years. I think it's proven itself quite well.
My preferance TODAY is to go with the .ini as its human readable (with notepad). LabVIEW itself uses a .ini for configuration settings.
XML is just as human-readable as INI files. Besides, what difference does it make what format is used by LabVIEW for configuration settings?
- TO OpenG or not to OpenG whether tis better to suffer the slings and arrows..... It there - Its open - its free. And its there today. As a guide for reuse code its great! I'll "waste the time" to code my library simillar but do not use the library myself. Maintainablity is my only isssue with it. With all due respect to the OpenG community (Truely- my hat's off to them all) there is no mandate for maintaing the code and my NI SSP is paid up.
I don't quite understand your point about maintaining the library. It seems as if your point is more general in that it relates to open-source code, rather than OpenG specifically.