LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Writing to and reading from a csv file on a RT Target

Hi all,

 

I want to read and write to a csv file through a RT PXI Target, but I'm having a lot of trouble figuring out how to do that. In my (very simple) vi pictured below I'm just writing to a csv file to C:\ni-rt\startup. This seems to somewhat work, because when I go to that directory afterward there is a newly created csv file there. However, when I open it it's completely empty, no matter what kind of data I write into it (seen in second picture below). Any ideas what I'm doing wrong? Is there a better way to be doing this?

Download All
0 Kudos
Message 1 of 2
(1,919 Views)

Two ideas;

 

1) I never tried writing to " C:\ni-rt\startup" and it may be a write-protected folder. Use an error indicator to see if you get an error "8" or something.

 

2) RT uses a different end of line scheme than Windows does so try looking at the file using Notepad instead of trying to use Excel.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 2 of 2
(1,893 Views)