LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Using WebDAV to transfer file to RT Error

Hi all,

 

I have difficulty to transfer image file to real time target (myRIO) using WebDAV. I have follow this https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000019PlESAU&l=en-MY steps to configure the setting. I have locate the "Abdo.JPG" file in the target (home/lvuser/natinst/bin/Abdo.JPG). Below is my VI and the error shown.

Error1.pngThe possible reasons states LabVIEW: (Hex 0xFFFE1B3C) The requested resource was not found. What I missing? Someone please help me Smiley Sad

Thank you

0 Kudos
Message 1 of 11
(3,409 Views)

I struggled with the WebDAV GetFile VI myself recently.

 

In the end I created an absolute path for the input "relative uri" in the format:

http://IP-address:80/"uri-output from directory listing"

Here's a screenshot:

 

grafik.png

 

Regards, Jens

Kudos are welcome...
0 Kudos
Message 2 of 11
(3,379 Views)


Hi Jens,

 

Thank you for your concern. I modify my code as shown below:

Error2.pngHowever, I get another error Smiley Indifferent. Can you show me what my mistake? Thank you

0 Kudos
Message 3 of 11
(3,362 Views)

I just realized now, that in your first post you already get an error after "Directory Listing".

 

According to the help for this VI, the input "relative uri" should be a directory and not the filename itself, i.e. just

/home/lvuser/natinst/bin

without your jpg-filename.

 

Regards, Jens

Kudos are welcome...
0 Kudos
Message 4 of 11
(3,351 Views)

@JensG69 wrote:

I just realized now, that in your first post you already get an error after "Directory Listing".

 

According to the help for this VI, the input "relative uri" should be a directory and not the filename itself, i.e. just

/home/lvuser/natinst/bin

without your jpg-filename.

 

Regards, Jens


Hi Jens,

 

When I change the "relative uri" as /home/lvuser/natinst/bin, I get error at the same place (after "Directory Listing"). The error states : 

Possible reason(s):

LabVIEW: (Hex 0x58BEC) Failed to connect to the specified hostname. Be sure the specified hostname is correct, the server is running and configured to accept remote requests.

 

 

0 Kudos
Message 5 of 11
(3,349 Views)

Update: I change the target address. Now, the error after the "Directory Listing" is solve. But, the same error (LabVIEW: (Hex 0xFFFE1B3C) The requested resource was not found.) occurs after the "Get File" vi.

0 Kudos
Message 6 of 11
(3,344 Views)

Not sure what's the problem now.

 

What is the value of the output "file list" of "Directory Listing"?

 

Regards

Kudos are welcome...
0 Kudos
Message 7 of 11
(3,328 Views)

@JensG69 wrote:

Not sure what's the problem now.

 

What is the value of the output "file list" of "Directory Listing"?

 

Regards


Hi Jens,

 

The output under "file list" of "Directory Listing" is it shows all the files in the target (/home/lvuser/natinst/bin). The error comes after "Get File" vi. Is it my "windows directory" is correct? Thank you

0 Kudos
Message 8 of 11
(3,322 Views)

As already stated, but you probably overread that:

 

For the node of "Format into string", make sure that the first string is just the IP-address of your target.

 

The output should be something like this:

http://172.22.11.2:80/files/home/lvuser/natinst/bin/XYZ.jpg

Regards,

Jens

Kudos are welcome...
0 Kudos
Message 9 of 11
(3,310 Views)

Hi Jens,

 

The output for the resulting string now show:

http://172.22.11.2:80/files/home/lvuser/natinst/bin/README_File_Paths.txt

 

instead of:

http://172.22.11.2:80/files/home/lvuser/natinst/bin/Abdo.jpg.

 

Error3.png

I have point the "Abdo.jpg" in the "window directory" and the "Abdo.jpg" also have been located in the target (home/luvuser/...). Why the string cannot read my image files? Thank you

0 Kudos
Message 10 of 11
(3,306 Views)