LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

myrio Data logging

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 herror.PNGave 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.

Download All
0 Kudos
Message 1 of 5
(3,738 Views)

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.

0 Kudos
Message 2 of 5
(3,581 Views)

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.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 3 of 5
(3,576 Views)

@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.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 4 of 5
(3,572 Views)

Thank you for clarifying, I had a total brain fart there!

0 Kudos
Message 5 of 5
(3,563 Views)