03-26-2014 02:50 AM
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?
03-26-2014 04:24 AM - edited 03-26-2014 04:26 AM
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)