LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

cRIO write to measurement file

I have been searching for a solution like mad but I have not found one yet.

I am using a cRIO-9002 with the cRIO-9215 card.

In regular labview one can create a signal generator and use the "write to measurment file"  function and a nice  file is created so that data points can be plotted versus time. 

Now once I try to do this in a Real Time VI for some reason the file never gets created.  I can not  figure out why. 

The whole point of this operation is to take accelorometer data from  an inflight RC helicopter but I am using a signal generator to simulate an input for the accelorometers.  I am including code just in case someone what to take a look. 

I am also open to any other solutions you might have. 

This should be a simple task but I can't seem to get it to work.

Thanks in advance,
Anthoney Pennington

0 Kudos
Message 1 of 6
(4,751 Views)
I looked at your program and it seems that you just need to set up your path correctly. It looks as though you are trying to save the file to a host PC (not the RT) unit. This cannot be done by simply addressing C:\..\.. You must think of the RT unit as a computer in and of itself. Therefore, to save a file on a host machine would require a network address. Something like \\ComputerName\SharedFolder. If you simply put C:\testdata.lvm it will save locally to the RT unit which you could access by FTP to the module.
 
Trying formulating the path in such a way that it addresses the destination like a network path.
 
Sincerely,
Rick Kuhlman

National Instruments Applications Engineer
0 Kudos
Message 2 of 6
(4,733 Views)

I have the same problem when i wanted to save a data file using Write to Measurement File.

But I cannot understand what you said here. could you give me an example, please?

0 Kudos
Message 3 of 6
(4,450 Views)
Hi Carsale,

I tested out a really simple vi using Write to measurement file.

Double click on the express vi.

I simply directed the path to C: (root directory of the controller)

You can then FTP to it by specifying its IP address ex: ftp://10.0.35.160/

Hope this helps
Van L
NI Applications Engineer
0 Kudos
Message 4 of 6
(4,432 Views)
Thanks very much. I knew how to save a file in cRIO. what I want is to save a data file to my computer rathan than in cRIO because the file is huge. anyway thanks once again.
0 Kudos
Message 5 of 6
(4,424 Views)
One approach is to use the FTP palette to get the file from the cRIO.
If the file is too large, you can try to save in multiple files and ftp them over to your host PC
FTP palette can be found on the function's palette>>connectivity>>Internet>>FTP

And this can all be done programmatically, as compared to the suggestion I made before, which is manually FTPing files over to your PC


Message Edited by Van_L on 05-02-2008 01:41 PM
Van L
NI Applications Engineer
0 Kudos
Message 6 of 6
(4,410 Views)