LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

the path is empty or relative. you must use an absolute path

Solved!
Go to solution

Hi, I have problem while running my labview program. It say "the path is empty or relative. you must use an absolute path". anyone can help me? I attach the error screenshoot below. thank you

0 Kudos
Message 1 of 6
(3,917 Views)
Solution
Accepted by raayr

Hi raayr,

 

do as the error message says: use an absolute path!

 

How did you create this "u//labviewgarek.csv" string? What is the expected path?

Why dont you attach your VI when you have problems with your VI?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 6
(3,910 Views)
Solution
Accepted by raayr

What is your OS? (Since you use forward slashes, it's probably not windows)

 

(Your path is definitely malformed, but unfortunately we cannot see your code. Do you use "build path" or plain string operations? What is the path supposed to be?)

0 Kudos
Message 3 of 6
(3,891 Views)
Solution
Accepted by raayr

I'm guessing an error happened upstream that led to an empty string being part of your path instead of whatever was supposed to go there.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 4 of 6
(3,871 Views)
Solution
Accepted by raayr

Since it looks like you are trying to write to the U drive and the forward slashes, I'm guessing you are using a cRIO.

 

But "//" being in your path indicates that you are missing something in your file path.  Check for any upstream errors.  Something returned an empty string.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 5 of 6
(3,861 Views)
Solution
Accepted by raayr

On crio, an absolute path should start with a "/" (details).

 

Could it be the path root is mistyped and should be "/u" instead of "u/"? (Maybe correct path is /u/labviewgarek.csv instead of u//labviewgarek.csv).

0 Kudos
Message 6 of 6
(3,834 Views)