LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Defining Project root directory

I'm setting up a LabVIEW (and TestStand, for that matter) project.  I'd like to declare some type of path constant, i.e. 'ROOTDIR', that might equate to C:\myBaseDir\FirstLevelOffset.  Then, in my project setup, when I tell it where to find files, where to place applications when they're built, etc, I can use the ROOTDIR to (1) cut down on the length of the path, (2) our directory structure (root) is going to be in a state of flux over the next month or so.  This would allow me to change ROOTDIR and not affect all my path/project setup.
 
Does anyone have a suggestion as to how to go about setting up a base path constant?
0 Kudos
Message 1 of 5
(3,285 Views)

I dont want to say that it is not possible as LabVIEW is a programming language but I have not come across a way to do it yet.

Regards,

Ankita

0 Kudos
Message 2 of 5
(3,263 Views)
You can use a configuration file (.ini file) to store these settings and LabVIEW's configuration file VIs to access them
0 Kudos
Message 3 of 5
(3,258 Views)
Do you have an example of what I would need to do?
0 Kudos
Message 4 of 5
(3,253 Views)


@mrbean wrote:
Do you have an example of what I would need to do?

Yes:

0 Kudos
Message 5 of 5
(3,247 Views)