LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Load data files from the VI directory

Hi!,

I am distributing a demo version of my software (as installer with run-time) in which the program needs to load some data files from the demo CD everytime it runs. There is no file dialog box and the files need to be loaded automatically from the CD.

How do I program my file path to point towards the data file folder on the CD? The issue is that when the demo CD is inserted into a drive it may have any drive letter (like say E or F or G).

In other words, how do I force my program to look for the data files in a specific folder on the CD?

Thanks in advance,
Gurdas
Gurdas Sandhu, Ph.D.
ORISE Research Fellow at US EPA
0 Kudos
Message 1 of 3
(2,661 Views)
The "Get Drive Type.vi" available from

http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=135&HOID=50650000000800000068CD0000&UCATEGORY_0=_49_%24_6_&UCATEGORY_S=0&USEARCHCONTEXT_QUESTION_0=detect+CD&USEARCHCONTEXT_QUESTION_S=0

will tell you whether it's D or E etc.
=====================================================
Fading out. " ... J. Arthur Rank on gong."
0 Kudos
Message 2 of 3
(2,661 Views)
Donald,

I guess I forgot to thank you for the answer.
Thanks!

The link you gave led us to something which finally worked.

Best,
Gurdas
Gurdas Sandhu, Ph.D.
ORISE Research Fellow at US EPA
0 Kudos
Message 3 of 3
(2,661 Views)