LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

strict type def labels

Hi!

I'm reading in an .ini file and the results go in a strict type def.
Now I was wondering, since the labels of the typedef are the same as the sections/keys in the ini file, isn't it possible to automate automate this parsing, so that for every element in the typedef the key gets filled in?
eg the typedef is a cluster containing a cluster named 'section1' which contains a string labeled 'string1', and the ini file cintains
[section1]
string1=value
So I would like to do something like "for every element in typedef, value = read key( element.label, element.parentlabel)"

Any ideas?
0 Kudos
Message 1 of 4
(2,804 Views)
Hi
 
You could use xml-files. Just have a look at the vis attached.
 
Hope this helps.
 
Thomas

Message Edited by becktho on 09-20-2005 01:29 PM

Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
Download All
Message 2 of 4
(2,802 Views)
There are tools at <a href="http://openg.org">OpenG</a> to automatically write clusters to/from ini files using variant. Dowload the Commander that will take care to install OpenG tools. The tools are in oglib_variantconfig.


LabVIEW, C'est LabVIEW

Message 3 of 4
(2,793 Views)
@becktho: thanks, I already know some xml so I might have a go with it

@JP Drolet: very interesting link!


*question solved*
0 Kudos
Message 4 of 4
(2,782 Views)