From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, 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: 

Read text file on a desktop PC used as an RT target to the host computer.

Solved!
Go to solution

Hi,

 

I am using LabVIEW 2012 and I want to read a text file on a desktop PC used as an RT target to my host computer.

what is the the file path to the RT target?

 

Thanks a lot

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

Hi msad,

 

read a text file on …  a RT target to my host computer

How do you read a file TO something?

Please explain: where is the file located and which computer needs to access it!

 

And usually you CANNOT access a different computers harddisc easily…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 11
(3,325 Views)

The RT target has a built-in FTP server. This is usually the simplest way to transfer files.

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

Thanks dan_u

 

Is there a way to read the text file in RT target with a VI in host computer? Can I read that using "File I/O VIs and Functions/Read from Text File Function"? What should I use for the file path? "ftp://IP/file name.txt" did not work.

0 Kudos
Message 4 of 11
(3,288 Views)
Solution
Accepted by topic author msad66
Hi msad,

Why don't you use ftp functions to access a file by its ftp address?
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 5 of 11
(3,278 Views)

Thanks a lot 

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

Hi Could you explain a little bit more? since I saved some data on my desktop PC (used as a RT computer). However, I don't know how to access to the files. Thanks.

0 Kudos
Message 7 of 11
(3,131 Views)

Hi line,

 

so you saved your data in files - I guess you know the filename and filepath of those files.

And now you don't know how to access them?

 

Can you explain the background to your question with some more details?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 8 of 11
(3,121 Views)

Hi GerdW,

 

yeah, I know the filename and path. The thing is they are saved on the desktop PC(used as a real time target). I am wondering how to read them using the windows main computer? is that clear?

0 Kudos
Message 9 of 11
(3,116 Views)

Hi line,

 

no, not clear at all.

 

What is your "desktop PC (used as a RT target)" and what is your "windows main computer"?

How are they related? How are they connected?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 10 of 11
(3,110 Views)