LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

System config files for Labview App

In Win 7, I am building a Labview project.  Where should I store the user selected system specific configuration files for the app operation?  Things like data directories, log file directories, etc

 

0 Kudos
Message 1 of 8
(2,596 Views)

If you mean your own build application

WHat I do in my projects is the following :

- LabVIEWs ini file in the same folder as exe

- Log files in directory logfiles next to exe

- other data files like settings, configuration etc in a datafolder next to the exe

 

If you mean with your source code

- create folders for every type of VI : globals, controls(typedef), subVI, FGLB, ...

- create a datafolder for your datafiles your using

- create logfolder for your logfiles

Kind regards,

- Bjorn -

Have fun using LabVIEW... and if you like my answer, please pay me back in Kudo's 😉
LabVIEW 5.1 - LabVIEW 2012
0 Kudos
Message 2 of 8
(2,587 Views)

With WIn 7 though the default app (C:\Prog Files X86\My App) are write protected to the directories now.  In order to write files to it I have to change permissions when I create the directories. 

0 Kudos
Message 3 of 8
(2,582 Views)

Whatfor do you want to store files?  An application or your source code

Kind regards,

- Bjorn -

Have fun using LabVIEW... and if you like my answer, please pay me back in Kudo's 😉
LabVIEW 5.1 - LabVIEW 2012
0 Kudos
Message 4 of 8
(2,578 Views)

variables that need to be stored to disk for later recall during program operation instead of maintaining globals of them

0 Kudos
Message 5 of 8
(2,574 Views)

Use the "Get System Directory" VI to choose the most appropriate folder.  For data which you only need until your program finishes, I'd use the "User Temporary" folder.

 

Mark Moss

Electrical Validation Engineer

GHSP

0 Kudos
Message 6 of 8
(2,571 Views)

Thats a good one but I am more interested in storing things after the app is shut down so the user doesnt have to re-enter it every time he runs teh app.  Things like where data directories are.

0 Kudos
Message 7 of 8
(2,563 Views)

Use OpenG  Variant Configuration file vis. Very handy.

PaulG.

LabVIEW versions 5.0 - 2023

“All programmers are optimists”
― Frederick P. Brooks Jr.
0 Kudos
Message 8 of 8
(2,551 Views)