03-24-2010 09:45 AM
smercurio_fc wrote:
Mark Yedinak wrote:
smercurio_fc wrote:
An alternative is to just use XML format. You can use the LabVIEW XML schema by using the Flatten to XML/Unflatten from XML functions. They're in the string palette.While XML is convenient I find that if the configuration file needs to be modified externally by the user XML can be a pain to work with. It is easier if the editor supports XML and parses the data for you but it is a pain to work with in its raw form. Old style ini files in my opinion are easier to work with with a basic text editor.
I use Notepad++ with the XML editor plug-in. Makes working with XML much easier.
I don't have anything against ini files - just offering an alternative.
I have nothing against XML either. I just wanted to make the OP aware of everything so they can make an informed decision. I know that people can sometimes hear XML (or any new technology) and assume that it is better since it is new. Some old ways of doing things have persisted because they work well.
03-24-2010 10:24 AM
Well,
At this point I am not very familliar with either. I think I played with some xml in notepad++ a while back as a method to create mods for a video game but never in LV.
I am going to work on the ini version, as I think I have a conceptual handle on that method (Thanks Mark!)
Now, if I could just get the rest of my job to leave me in peace long enough to make it happen!
03-24-2010 10:41 AM - edited 03-24-2010 10:42 AM
How do I know (and do I even care) what the ini file name is, and where it is saved?
Is that the refnum input?
And is there a way to delete sections if needed?
03-24-2010 10:56 AM - edited 03-24-2010 11:00 AM
Haha, guess I didn't have a handle on this. What should I be putting into the refnum input?
03-24-2010 04:02 PM
OK,
So I have some of that stuff figured out (like the refnum). Why now am I getting a warning about conflicting dependencies when I add the "read section" vi to my project?
03-24-2010 04:06 PM
03-24-2010 04:18 PM
Sorry, read section is the... well "Read Section Cluster" from the openg ini config files pallette.
Either way, here is what I've got. I changed over to an event structure, and I have not had enough time to really contemplate this stuff today (hence all the short questions that I could then answer myself).
I'm finding the only bummer about OpenG functions is that they don't include example problems!
03-24-2010 04:34 PM
03-25-2010 08:13 AM
03-25-2010 09:16 AM
Here is the partially updated.
Seems like the save to file function is working (kind of). When I open the ini file in notepad, I see no text. When I use the load function button, no matter what section reference I put in, it seems to load the last set of data.
Not quite sure where I'm going wrong.