11-11-2012 08:47 AM
Dear All
I hope my message finds you all well
My Question is : is it possible to log my data from cRIO to a network drive and stream the data being captured to a binary file in this drive ? and do the conventional File IO functions ?
I heard that DataSocket can do this , but it is mainly used between computers (this is what i understood so far about it)
My network drive is a DLink ShareCenter : http://sharecenter.dlink.com/products/DNS-320
I know that i can use the NI 9802 SD Card module , but it is out of my budget now to buy it
Please assist
Best Regards
11-12-2012 01:20 PM
Hi Mohammed,
Are you trying to accomplish all this with or without the use of a host machine? If you're doing it with a host machine then the best bet would be to transfer data to the host using network published shared variables and then write to a file on the network from there.
If you're trying to do all this from the cRIO straight to the network drive with no intermediate host PC there are many things to consider. First off would be making sure there are no security protocols on the network drive that would prevent the cRIO from accessing it. Next you'd have to make sure there are no drivers required for the network drive as many drivers will not work on the Real-Time OS since most of these drivers are designed for a Windows system. If all this is taken care of then I'd say FTP is probably your best bet for getting files onto the network drive as long as you have an FTP server.
I'm unsure about if you would be able to stream to a binary file from a cRIO. I would need to know more about your application and what hardware you're using. Again I'd recommend you use a host PC and do the file I/O from there if possible. Can you tell us a bit more about your application and setup?
11-13-2012 04:58 AM
the application is a High temperature tests for compressors
estimated testing time might reach 2000 hours per test , so this is why I chose the compact RIO to be a stand alone system , it is impossible to guarantee a 2000 working hours for a PC , also the data logging should be reliable throughout the testing time.
my cRIO is 9073 integrated chassis , with a number of C Series modules for monitoring and control
The point is that we need to log the data maybe every 1 second - to - 10 seconds to a binary file using the File IO
we used to work with the 9802 SD card C series module , but it is out for a budgetary reasons in this project.
I am not sure if the Dlink network drive (Link at my previous post) has any security protocol or can work as a FTP server
Thanks in advance
11-14-2012 02:34 PM
Hi Mohammed,
At the end of the first paragraph in the link that you sent in your original post it mentions a "FTP server so you can remotely access your files over the Internet." You should be able to use the FTP VIs in order to move data from your cRIO to the network drive. If you need help implementing this I'd recommend opening up LabVIEW and opening the example finder from the help menu. If you search in the example finder using the keyword "FTP" you will find several examples. The FTP Generated Data.vi example seems like it's along the lines of what you're trying to accomplish and may help you with your implementation. These VIs should work much the same on your cRIO.
Hope that helps.