LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I record the data from the accelerometer on myRio

For example, using the template from myRio project for the accelerometer, I wanted to record the x,y,z values and store it in an array for future calculations( like k = x+y * z for every 0.01 sec). How do I do that? I tried using the array block diagram but an error of different data format came up. I tried using a table where i wire x to the table indicator, still same error. Can anyone explain how Labview works?

0 Kudos
Message 1 of 2
(2,725 Views)

Hi Yourong,

 

you really should attach your VIs or even a picture (snippet) of the block diagram…

 

- To store data in an array you might use the autoindexing of a loop.

- You may use shift registers and a BuildArray function.

- You may use shift registers and ReplaceArraySubset with a pre-defined array.

 

All this is explained in the LabVIEW 101 offered by NI. Please go throught the basics courses! (ni.com/gettingstarted/labviewbasics)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 2
(2,713 Views)