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: 

file path default

Hi,
How can we setup a file path so as by default it is not empty, in other words when running the VI, it would not ask to specify a file.
Thanks
0 Kudos
Message 1 of 9
(9,738 Views)

Hi RJP,

try this: right click on the control and select "Data Operation -> Make current value default". Hope this helps.

Mike

Message 2 of 9
(9,736 Views)
You can either pass the file that you want as a constant or through a control, or try feeding "current vi's path" or "default directory" constant from Flile I/O --->File Constants.
If you can attach your VI and be slightly more descriptive, we can perhaps better help you.
 
Best,
 
Santiago
0 Kudos
Message 3 of 9
(9,720 Views)
Thanks guys, worked for me.
0 Kudos
Message 4 of 9
(9,695 Views)
I have 2 problems.
 
1. My program keeps ignoring what I put in Start path on a global path variable. It goes to the desktop nomather what. It worked at first but then just suddenly stopped working. So I coded it with a constant (bad solution =/).
 
2. When I code the path I wanna code it like this: "current path of running vi or program\data" but I dont know how to type that in.
So I dont want it to be eg. "C.\Labview\CE v1.0\data" so that if the folder is moved or renamed the coding wont work...
 
Anyone who has any answers?
 
Cheers
0 Kudos
Message 5 of 9
(9,439 Views)
Y cant you use this icon
Message 6 of 9
(9,433 Views)
Wops that was what I was looking for. Stupid me trying to write some expression for it =). Thx
0 Kudos
Message 7 of 9
(9,406 Views)
Nothing stupid mate.We are all here to learn something new everyday!!!



Dont forget to rate a good answer


Message 8 of 9
(9,395 Views)

Thanks mike

0 Kudos
Message 9 of 9
(7,398 Views)