Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

How do you log data into the flash storge memory of a Compact RIO controller (cRIO-9004)?

How do you log data read from a Compact RIO analog input module cRIO-9215 into the 512 MB of non-volitile flash storage on a cRIO-9004 RT Controller for data logging applications? How do you monitor the status of the 512 MB of flash memory?
0 Kudos
Message 1 of 4
(5,293 Views)

Hello Compactuser,

                                 Attached along with this post is a datalogging example using cRIO 9215. This example should give you an idea on datalogging using cRIO.

This example shows a simple data logging operation using the CompactRIO embedded controller and a cRIO-9215 analog input module. The example can be easily updated for other modules or multiple modules.

The example consists of a VI that is downloaded to the FPGA and the host VI that is run on the CompactRIO RT controller. The host VI handles downloading and running the VI on the FPGA. A third VI can be used to read a data file in LabVIEW for later processing and display.

The FPGA VI acquires data from 4 channels of the 9215 module in slot 1. The data is buffered in a FIFO on the FPGA and then transferred to the host application using a handshaking transfer process. The host application writes the data into a binary file. The file includes a simple binary header containing the number of channels of data and the sample rate used to acquire the data. After transferring the data file to a Windows machine, the third VI can be used to read the data file and display the data on a graph.

Software : LabVIEW full development system 7.1

Hardware : cRIO 9215

Driver : NI-VISA 3.2, NI-RIO 1.0

 

To monitor the status of the flash memory you can use the Volume Info.vi in Funtions>>All Functions>>File I/O>>Advanced File Functions>>Volume Info.vi

Hope this helps.

 

0 Kudos
Message 2 of 4
(5,274 Views)
hello!
i have one question
how should I change the log time? Because the example only has "ten seconds" to log data into CF. card.
 
Thanks for your answer.
0 Kudos
Message 3 of 4
(4,541 Views)

I would look at a newer example since the one posted on this forum is a little old.  One that you may want to look at is here:

http://community.ni.com/examples/acquisition-and-data-logging-of-vibration-signals-on-compactrio-sys...

It is for LabVIEW 8.2 so its the best example to use if you are on the latest version of LabVIEW (I'm not sure which one you are using).  You could also just look at any datalogging example in the example finder (Help->Find Examples).  The only thing you have to know when logging data to a real-time system is where to write the data.  Typically people create folders on their cRIO by FTPing into the controller (ftp://<ip address>).  Then you can just specifiy the path to your file just like you are writing a file on your computer ("C:\ni-rt\myDataFolder"...or a similar path).

Also, for future reference you should probably not post to threads that are this old.  Since this thread hasn't been replied to in more than a year, not many people see your post.

Regards
Justin D

0 Kudos
Message 4 of 4
(4,526 Views)