06-30-2005 09:34 AM
07-06-2005 02:04 PM
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.
01-17-2007 11:23 PM
01-19-2007 10:12 AM
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:
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