07-12-2011 12:05 AM
Hi, I want to write the results of some operations to a file which I can subsequently access on my windows box for the purpose of verification. I'm not worried about determinism (the file I/O operations are performed outside while loops after the testing is done). But I don't know how to direct the file storage to the real time box and subsequently how to get the files onto my windows machine.
I'm using the write to measurement file VIs.
07-12-2011 01:20 AM
It would be helpful if you can share with us your VI by making an attachment here and if you can be more specific like 'in which winows application(excel or notepad) are u trying to open the measurement file' instead of using 'windows box' and 'windows machine'... 🙂
07-12-2011 01:27 AM
I didn't include those because they're not relevant. The problem is not how to open the files. I can figure that out myself (already know how to do it). The problem is in the storage and the transfer.
07-12-2011 01:28 AM
And if my OP wasn't sufficiently clear. I am performing tests in Labview real time and would like to write the results to a file. Then I would like to look at this file on my windows machine.
07-12-2011 03:31 AM - edited 07-12-2011 03:31 AM
To store files on the RT just work with paths like you do on Windows. For instance you can store your file in "C:\Measurements\mydata.log" (assuming the "Measurements" folder already exists, else create that first).
The most common way to access files on the RT from the Windows machine is FTP. You can use any FTP tool to connect to the IP address of your RT system or you can use the FTP VIs in the Internet toolkit to do this programmatically.
07-12-2011 08:59 AM
I will just throw in my 2 cent regarding the topic and my experience.
I usually save files to the root of the real-time drive (C:\<filename>). I mainly do this because it's the quickest way to the files being on the root of the drive (being that you don't have too many files in root). To get the files off of the real-time machine, I have found that FileZilla is a easy and quicky utility to remove the files from the system. That being said, if you want to automate the process you will have to write LabVIEW code, but I find the drag and drop nature of FileZilla to be sufficient. Goodluck.
07-12-2011 09:06 AM
Yep, same methods as you use to save files on your windows box. You can investigate the file structure on your RT target through windows explorer by entering ftp:/<ip> in the explorer bar.
Long as we're donating pence, my experience with the ftp VIs has been pretty dismal. Dragging and dropping through explorer, file trasfer takes less than one second. Using the ftp VIs, the same file transfer can take >1min! I've also encountered stability issues with them in that they work one day and don't work the next. I blame the ftp server on the pharlap OS more than the VIs, actually...it seems really flaky.
07-12-2011 06:16 PM
You may also want to take a look at this article on FTP Transfer of Files between Host and Real-Time Targets. Good luck!
~kgarrett