LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to store files in labview realtime

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.

0 Kudos
Message 1 of 8
(5,276 Views)

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'... 🙂

0 Kudos
Message 2 of 8
(5,264 Views)

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.

0 Kudos
Message 3 of 8
(5,261 Views)

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.

0 Kudos
Message 4 of 8
(5,259 Views)

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.

 

0 Kudos
Message 5 of 8
(5,249 Views)

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.

-You can never have too much power...
0 Kudos
Message 6 of 8
(5,238 Views)

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.

CLAD
0 Kudos
Message 7 of 8
(5,233 Views)

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

 

District Sales Engineer
0 Kudos
Message 8 of 8
(5,215 Views)