LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Configuration Files

Solved!
Go to solution

Hi,

 

I want to use configuration files to define a test script process. Each [section] would be the test and each key would be a parameter. How can I get the INI file to be read if the number of sections/keys are not known?! The reader does not know how many tests [Sections] are inclosed in the INI file and the number of parameters [Keys] can also vary...

 

Thanks for any help...Smiley Happy

 

Electrostatic......

0 Kudos
Message 1 of 6
(2,916 Views)
Solution
Accepted by topic author Eletrostatic

Use "get section names" and "get key names" as shown in the snippet belowtest.png

Regards
Guru (CLA)
0 Kudos
Message 2 of 6
(2,911 Views)

I will test this out. Thanks for the quick response.....Smiley Happy

0 Kudos
Message 3 of 6
(2,905 Views)

Ok this example was great to grab all the "Keys" and "Sections" is there an easy way to grab all the associated data with the keys/sections?!

 

For example it could be formated in the same way as the 2D array which holds the key names. That way the arrays would be 1:1 (like a LUT)

 

Hope you can help someone Smiley Happy

0 Kudos
Message 4 of 6
(2,886 Views)

Its ok. I figured it out. Just pipe the Keys and Sections and put them in a 2d for loop. It generates the data, Smiley Happy

0 Kudos
Message 5 of 6
(2,875 Views)

Hi,

 

What about generating configuration files from 2D arrays. Whats the best way to go about it?.

 

For example if I have a 2D array with unlimited rows (ie. [Test n+1]) and each has 4000 parameters (Keys). How can I create a file from the 2d array?.

 

Thanks....Smiley Happy

0 Kudos
Message 6 of 6
(2,783 Views)