LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

ini file use

Solved!
Go to solution

Hello,

 

i have a question concerning customs with ini file.

 

I would like to know what is the common use, for the moment i create a big cluster of cluster containing parameters of

program (using openg palette).

 

The values of this file normally don't change a lot but some times they have to and could be changed by user and some only by developper.

however if he knows he can makes canges directly with txt editor.

 

So have i to make two ini files or i am making confusion between ini file (ex path name, ports , devices) and parameter file ( number of point, Criteria of stability ...?

 

What is the common habit of programming ?

 

when it is needed do you make changes on ini file via txt editor or do you developp a vi to re-write it ?

 

Best regards

 

Tinnitus

 

 

 

 

 

 

 

 

 

 

CLAD / Labview 2011, Win Xp
------------------------------------------------------
Mission d'une semaine- à plusieurs mois laissez moi un MP...
RP et Midi-pyrénées .Km+++ si possibilité de télétravail

Kudos always accepted / Les petits clicks jaunes sont toujours appréciés
Don't forget to valid a good answer / pensez à valider une réponse correcte
0 Kudos
Message 1 of 7
(4,456 Views)

Not a really help with my response but all depend of needs and users.

 

Ask if your customers have a sufficient level in the environment of the software to change values by test editor or not?

 

You could write a configuration interface with several level of finishing... display, technics, limits, tests of compatibility... An opened word!!!

Message 2 of 7
(4,446 Views)
This discussion on the LAVA forum may be of interest to you...
Message 3 of 7
(4,434 Views)
I use .ini files to run common code on multiple machines.  I keep a standard code base and it reads configuration and test information from the file.  Easy software maintenance as there is only one executable distributed to all locations.
Message 4 of 7
(4,409 Views)
Solution
Accepted by topic author tinnitus

Tinnitus,

 

I'm not sure that there is a 'standard' method for .ini files.  In some cases I think it is a good idea to split the information into multiple .ini files.  One to contain things that only the developer would need to change and one to contain things the user might need to change.

 

I always develop a vi to create the .ini file the first time.  That way if I need to provide an interface to change settings, I have it.  One advantage of this is that you can protect against silly typos that can happen in text editor.  You can build this into a Functional Global/Action Engine that takes care of the .ini in general.

 

I also suggest you take a look at the OpenG Variant Configuration File VIs  found here http://wiki.openg.org/Oglib_variantconfig

Message 5 of 7
(4,403 Views)

I agree with Wayne.C though i go a bit further. The idea of two ini files is not bad per se as it does keep users from possibly editing "dangerous" information. I however usually prefer to create an actual UI to display and ini settings and allow the users to edit the settings from there because 1. that avoids mis-edits in the text file and 2. it does not encourage the user to "mess with the system". The OpenG Variant Config files are indeed a nice and easy way to write that "Settings UI". 

Message 6 of 7
(4,382 Views)

thank you all,

 

I were starting with openg config files, with section splitted on severals Tabs, but i reallized its a little bit borring...

each time you have a parameter to add, wires are broken.   

 

 

As i 'have no informatic background and i'm alone using labview

i would like to know if i were going on  good direction because i saw other config files based on xml or managed with use of classes .

 

Best regards Tinnitus

 

 

 

 

 

 

 

 

Message Edité par tinnitus le 01-16-2010 01:07 PM
Message Edité par tinnitus le 01-16-2010 01:12 PM
CLAD / Labview 2011, Win Xp
------------------------------------------------------
Mission d'une semaine- à plusieurs mois laissez moi un MP...
RP et Midi-pyrénées .Km+++ si possibilité de télétravail

Kudos always accepted / Les petits clicks jaunes sont toujours appréciés
Don't forget to valid a good answer / pensez à valider une réponse correcte
0 Kudos
Message 7 of 7
(4,352 Views)