mstoeger Posted April 1, 2010 Report Share Posted April 1, 2010 Dear all, I am looking for a possibility to - read out a (linux-like) config file (comments start with #, value01 = abc, etc) --> DONE - isolate usable lines (value01=abc) --> DONE - parse this content to a "configcluster" --> OPEN I have defined this configcluster as typedef. Now I want to connect this cluster to a function/VI that searches inside the usable lines (it's a string) for the names of the elements, gets the value behind the name, convert it to the type the element inside the cluster represents and inserts it into the cluster. I have the openG data Tools in use - perhaps I have overseen a simple solution? This is an alternative to the LV-config-file VIs, in my opinion their use is rather unconvenient (and also this automatism is missing). The advantage of my effort should be, that I can easily change/enlarge my configcluster(typedef) without applying changes to the readout-and-parsing-functionality. Thank you! Martin Quote Link to comment
Mark Smith Posted April 1, 2010 Report Share Posted April 1, 2010 Take a look here http://www.mooregood...iteAnything.htm This does read/write to ms style config style VI's (not the linux style config VIs) but you can get a lot of insight about how something like you are proposing might be structured. In my opinion, this set of VI's pretty much solves the problem of easy to read, write, and create config files. I've used them quite a while with no problems. I also use the LabVIEW XML schema a lot but not where I expect the configs to be edited in a text editor Mark Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.