LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to add more default directories

I am using LabVIEW's wonderful feature (setup found in Tools::Options::Paths) that allows you to drop down the path for the Default Directory, Temporary Directory, Default Data Directory, VI Search path.  Is there a way to add additional icons that would represent other custorm Default directories?  Is this a possible use of Developing Controls/XControls discussed in the LabVIEW Advanced I Architectures course?
0 Kudos
Message 1 of 2
(2,563 Views)

The default directory is the directory returned by the Default Directory function, so you can only have one of those.

You can create your own VI which will basically be the equivalent of a global #const definition.

Just create a single path output on the VI and wire a constant into it. Give the VI a relevant name and that's it. Changing the path is simply a matter of changing the constant. If you don't want to recompile the VI when changing you can save the path in a configuration file.

If you want more than one path, you can create as many VIs like this as you want (they can probably all even use the same config file) or use an array of paths in your VI and index out the path you want.


___________________
Try to take over the world!
0 Kudos
Message 2 of 2
(2,545 Views)