10-09-2012 01:55 PM
Hi all,
Does anyone have the experience storing data from sbRIO into an external USB or any other types of storage?
Since there is not USB port on 9602, I am planing to use the on-board serial ports to do this.
But how?
Thank you.
Zhuoyuan
Solved! Go to Solution.
10-11-2012
06:39 PM
- last edited on
03-25-2025
10:12 AM
by
Content Cleaner
Hello Nick.song,
Can you please provide more information about your application, you could use serial to store data however this might not be the most efficient method. NI does have a SD Card Module which you could use to store information to an external device, however you could also stream information to a host system. Using network streams or TCP/IP you can transfer data from your sbRIO to a host system, you could also FTP the information with your system on a network. Depending on scope of your application and your end goal different data storing methods may be a better fit.
https://www.ni.com/en-us/support/model.ni-9802.html
Paul-B
10-11-2012 07:42 PM
10-12-2012 10:32 AM
Hi Paul,
I am working on an autonomous vehicle. I already have all the controling and data collection program ready on the desktop and the tests worked out well.
Now I am trying to put all the programs into the vehicle so that I don't need any enthernet connection when the vehilce is running. But I am still not sure how to do it in details.
I'll apprieciate it if you can also help me out on this.
And for the external storage, I want to store the IMU data when running. Once I can download all the program into the sbRIO, I cannot store the date into the desktop using TCP/IP any more. So I want to find a way to store them. Because storing them to the place I store the program will case storage issues.
Thanks for you help
Zhuoyuan
10-12-2012 10:35 AM
More info. I checked the SD module. I don't think I will go for that because of the price. I am using sbRIO 9602, the first generation. I also got the 2nd generation shipped resently, which came with USB port and it's really sweet. But for this one I am working on, I still need to figure out a way to solve the storage problem.
Thanks
10-12-2012 10:38 AM
Hi Spex,
Thanks for you information.
Frankly, the new sbRIO has been shipped already, which is awesome to have USB. But I still need to figuire out how to sovle the storage problem with the 9602. I have SPI driver for the IMU written. So it may not be a problem. Just not very sure how to do that and what kind of device I need to use to connect. (The SD module is not an option because of the price and I am not using cRIO)
Thanks
Zhuoyuan
10-12-2012 10:56 AM
Hi Zhouyuan,
This wikipedia article on SD Card technical details is where I got the idea to use the FPGA to talk directly to an SD Card via SPI.
http://en.wikipedia.org/wiki/Secure_Digital#Technical_details
Unfortunately, I don't know all the technical details that would be involved to making this work, but it looks possible.
As I mentioned, the SPI interface to SD Cards is very low level, and developing a functional driver may be challenging.
In the spirit of brainstorming low cost ideas... You could build a small ethernet enabled logging system on Arduino. I searched a bit on Google and found the following shield which includes SD Card and Ethernet. Coupled with the Arduino microcontroller, the device could receive the IMU info from sbRIO via ethernet on the robot, and log the data to the SD Card.
Both of the above efforts would take work, but are lower cost than adding a dedicated SD Card module which includes the necessary firmware in its design.
Cheers,
10-12-2012 11:14 AM
Hi Spex,
Thank you. I'll try to look at is first. I hope it works because it seems to be convienient.
Best.
Zhuoyuan