LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

What is the best way to build a filepath that can be variable?

When building an application I am having trouble with Labview finding a text file the program needs.
 
What is the best way to build a filepath that can be variable?
 
I have done this and it works in the development environment but does not work for application I have built.
 
 
 
========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 1 of 4
(3,066 Views)

When comiled to an exe, Labview compiler adds an extra folder layer, the name of the vi.  So you have to strip path twice:

Message Edited by tbob on 09-24-2007 02:50 PM

- tbob

Inventor of the WORM Global
0 Kudos
Message 2 of 4
(3,054 Views)
 


@tbob wrote:

When comiled to an exe, Labview compiler adds an extra folder layer, the name of the vi.  So you have to strip path twice:


Tbob,
 
Your diagram comment is incorrect!
 
as VI: c:\DIR1\File1.vi
as exe: c:\Dir1\Appname.exe\File1.vi
 
Where appname.exe is the name of the executable. 🙂
 
Message 3 of 4
(3,043 Views)
"What is the best way to build a filepath that can be variable?"
 
This is the best way to achieve what you want. Smiley Wink
 
See the attached VI in 7.1.
 
Do the further building of the path for the .txt file from the output here.
- Partha ( CLD until Oct 2027 🙂 )
Message 4 of 4
(3,031 Views)