From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

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
(15,981 Views)
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
(15,982 Views)

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
(15,783 Views)

Thanks. Very useful for me.

0 Kudos
Message 4 of 4
(7,674 Views)