02-18-2019 10:57 AM
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?
02-18-2019 12:16 PM
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