LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Read CSV file from project on RT target

Hi all

I try to read a csv file saved in my project on my RT Target.

 

For example: I try to read read_csv_data_1.csv on my VI read_csv.vi when it's running on my RT target (without copy-paste him before the run). 

project structureproject structure

 

When I run my VI on my RT target the VI path is "/home/lvuser/natinst/bin/read_csv.vi", I assume it's a temporary location. I try to find my csv file in this path but I see nothing. 

 

Does it exist a way to read my csv on my RT target, without manual copy-paste on a RT target folder?

 

Thanks,

Carole

0 Kudos
Message 1 of 2
(897 Views)

Hi Carole,

 


@carole8938 wrote:

When I run my VI on my RT target the VI path is "/home/lvuser/natinst/bin/read_csv.vi", I assume it's a temporary location. I try to find my csv file in this path but I see nothing. 

 

Does it exist a way to read my csv on my RT target, without manual copy-paste on a RT target folder?


Your RT controller is a computer on its own! It cannot access the harddrive of your Windows computer!

So to be able to read a (CSV) file using a VI running on that RT controller the file has to be located on the harddrive of that controller. You need to deploy those files to your RT target…

 

That path is no "temporary" location, it is the filepath on your RT controller harddrive.

Best regards,
GerdW


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