Academic Hardware Products (myDAQ, myRIO)

cancel
Showing results for 
Search instead for 
Did you mean: 

Write to SD-card or USB from SPI myRIO

Solved!
Go to solution

Hi all,

I want to save data bundles from the myRIO to an USB stick or a SD card in order to obtain data when running my program as stand alone (without being plugged into the computer). However I need the built in USB-port for a camera to do computer vision, which is why I cannot just use this port to save from. I have been looking around the web but can't seem to find any other way to save data to a SD card or an USB stick.

I am considering whether it is possible to write via SPI from Pmod MicroSD from Digilient (https://media.digikey.com/pdf/Data%20Sheets/Digilent%20PDFs/Pmod_MircoSD_RM_Web.pdf), but it seems like I need a certain library which is only useful for eg. Arduinos.

 

Have any of you done this or have you heard about ways to save data from SPI-outputs from the myRIO?
Thanks

Best
Lucas Sandby

0 Kudos
Message 1 of 4
(2,920 Views)
Solution
Accepted by topic author Lucas_S

Hello Lucas!

 

With 


However I need the built in USB-port for a camera to do computer vision, which is why I cannot just use this port to save from.

you mean that the camera needs this port exclusively? In general USB hubs are suppported, and I assume the bandwidth needed for writing data to the USB drive is quite low.

Can I Connect a USB Hub to a myRIO?

 

 

Regarding SPI (maybe I2C) as well: These protocols are used to do inter-chip and inter-device communication. For sure it is possible to connect a second USB controller to it. The main issue will be to connect to it in software (as you already mentioned). You don't want to implement the full SPI communication yourself. As that is quite device-specific (read: depends on the USB controller you will be using), it's probably a matter of luck to find a ready to use implementation. I have not heard of any. I hope someone else can give you more input!

 

 

Edit: You probably though about this and rejected the idea because of some requirement. So just in case: Did you think about streaming the data via Wifi to a storage location?


Ingo – LabVIEW 2013, 2014, 2015, 2016, 2017, 2018, NXG 2.0, 2.1, 3.0
CLADMSD
0 Kudos
Message 2 of 4
(2,893 Views)

Thanks Ikaiser

 

What we ended up doing was to do WiFi-routing as you mentioned. Thanks for your inputs!! 🙂

0 Kudos
Message 3 of 4
(2,814 Views)

Hello Lucas_S,

Thank you for reporting back! I am sure this helps others as well. Please don't forget to mark this thread as solved.


Ingo – LabVIEW 2013, 2014, 2015, 2016, 2017, 2018, NXG 2.0, 2.1, 3.0
CLADMSD
0 Kudos
Message 4 of 4
(2,808 Views)