LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to save data to cRIO 9014?

Hello all!

 

I'm using a cRIO 9014 to read and save voltage data from a number of different sensors (thermocouples, load cells, pressure transducers) and want to save directly onto the cRIO.  [Figure One]

 

Using the file transfer options in the Measurment and Automation Explorer, I see a root file path '/' (and another section '/ni-rt/LabVIEW Data/').  I however I created my own folder, just to keep organization '/STF_data/'. [Figure 2]

 

When I start up the program and specify the file path and begin trying to save data (I have two data saver VIs, one for the sensor voltages, and one for boolean values I'm writing to several valves in order to control them). [Figure 3 and 4]

 

However once I start up the case structure to save data (just a boolean toggle), I get the following error [Figure 5]

 

 

Any ideas on what's going on here?

 

 

 

 

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

More images:

 

 

Download All
0 Kudos
Message 2 of 8
(3,275 Views)

And as a final follow-up, I tried to save just to the computer and ran into another error I haven't been able to figure out....I would assume this translates to the cRIO saving as well.

 

Here is a screen shot of the error.

0 Kudos
Message 3 of 8
(3,266 Views)

Even though the MAX FTP client lists the directory as simply "/" the correct file path for a cRIO's hard drive is "C:\". You can find information on this in this KnowledgeBase, http://digital.ni.com/public.nsf/allkb/BBCAD1AB08F1B6BB8625741F0082C2AF?OpenDocument. 

 

As for your second error there is this forum post discussing a similar case, http://forums.ni.com/t5/LabVIEW/LabVIEW-error-63198/m-p/552810?requireLogin=False. Try double checking your open and closes on your FPGA references to make sure everything is being closed properly. In addition, make sure your FPGA Opens are outside of your loops.

 

I hope that helps. 

Miles G.
National Instruments
Staff Applications Engineering Specialist
0 Kudos
Message 4 of 8
(3,250 Views)

Thanks for the help.  Got the file path to the cRIO set up, but now I'm running into Error 8 (a permissions error), any ideas there?

 

I'm using the following file path  C:\test1.tdms

 

 

 

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

Do you get this error if you put the file in the ni-rt subdirectory rather than on the main directory of the C drive of the device? I believe that user files are supposed to be under the ni-rt folder. If that doesn't work let me know. 

Miles G.
National Instruments
Staff Applications Engineering Specialist
0 Kudos
Message 6 of 8
(3,230 Views)

Tried that already but go an 118 Error:

 

Possible reason(s):

LabVIEW:  The supplied folder path does not exist.

 

 

Can save to the computer just fine, but having issues with the cRIO.

0 Kudos
Message 7 of 8
(3,228 Views)

You'll need to create the folder first on the RT side.  The easiest way to do this is to ftp into the cRIO.

 

Simply open up Windows Explorer (not Internet Explorer) and type into the location bar ftp://<ipaddress>

 

This should take you to the root folder showing the ni-rt folder and the like.  Just treat it like a regular Windows folder.  Right-click to create the subfolder you want and then trying creating a file in that directory.

Chris
Certified LabVIEW Architect
Certified TestStand Architect
0 Kudos
Message 8 of 8
(3,214 Views)