LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Relative File Path Syntax

Hi,
I am trying to use "Read From Spreadsheet File.vi" and am having trouble using relative file paths (as opposed to absolute file paths).
Does this VI support relative file paths and what is the syntax of relative paths? Thanks.

Linus Chung
0 Kudos
Message 1 of 4
(8,995 Views)
Highlighted
Hi Linus,

Yes, file VIs support relative file paths. Under the "File I/O" function palette, you can find "Build path" and "Strip path". Use those VIs to build relative file paths.

Also you can use "." (one dots) for the input path and ".." two dots for one path level up, just as you could use them in command prompts.

Attached VI is an example.
Message 2 of 4
(8,996 Views)
Highlighted

hi linus,

can you paste relativepath.vi for labview 7.0? i cant open your 7.1 file.

thanks

timon

 

0 Kudos
Message 3 of 4
(8,797 Views)
Highlighted

Thanks. Very useful for me.

0 Kudos
Message 4 of 4
(688 Views)