03-31-2018 09:09 AM
I used the accelerometer code provided in myrio project essentials guide to read the values from accelerometer. I need to store these values atleast for 10minutes but i'm facing trouble doing that. I have tried using "write to measurement file" function as mentioned in the 1st attachment below and got this error :
I have also tried using "write to spreadsheet file" function as mentioned in the 2nd attachment below but it was a failure too.
07-10-2018 12:28 PM
Hi Lonewolf27,
As you are trying to store quite a bit of data, I would recommend streaming this data from your myRIO to your host PC. This can be done with a DMA FIFO - there's lots of links online that will help you with that. On the Windows side of things you can store to a TDMS file.
If you want to keep everything on the RT:
Looking at your code, I don't thing the write to file functions you have used are supported on the RT. Try using the lower level functions or the TDMS file functions.
07-10-2018 01:21 PM
Please keep in mind that this code is running ON the myRIO. It is NOT ON YOUR PC. Therefore, you cannot arbitrarily have your myRIO write to a file on your PC. What you need to do is use a Network Stream to send the data to an application on your PC and then that application can save the data to a file on your PC.
07-10-2018 01:24 PM
@McQuillan wrote:I would recommend streaming this data from your myRIO to your host PC. This can be done with a DMA FIFO
No. A DMA FIFO is for sending data to/from the FPGA. In the case of the myRIO, that is a direct connection between the RT and the FPGA. Besides, the OP is not even programming in the FPGA. A Network Stream is the proper tool here to send the data to the PC.
07-10-2018 04:37 PM
Thank you for clarifying, I had a total brain fart there!