ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

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,510 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,488 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,483 Views)
Do you have an example of what I would need to do?
0 Kudos
Message 4 of 5
(3,478 Views)


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

Yes:

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