06-09-2016 12:56 AM
Hello everyone,
I am relatively new to LabView, and absolute novice when talking about arrays.
Here's what I would like to do. I am acquiring measured values of voltage from a voltmeter via LabView. I can easily display them and make manipulations. However, I would like to create an array (not sure if 1D would be sufficient or I need higher order of array) and continuously feed new values to this array, up to certain limit (let's say 100 values maximum). How can I do this? I read some posts about using for loop, but not quite sure how to do that. Can anyone give me a suggestion, or a simple example? Or just if I am repeating old posts, to point me to the right reading material.
Best regards!
Solved! Go to Solution.
06-09-2016 01:03 AM - edited 06-09-2016 01:03 AM
Hi DocOc,
use a loop with a shift register to hold your array. Then apply standard array functions on this array!
(This is pretty basic LabVIEW stuff. You can learn this by taking the free online lessons provided by NI on their website!)
Another approach is to use the PtByPtQueue function, which essentially does the same under the hood…
06-09-2016 01:08 AM
Dear GerdW,
Thank you for the tip and the fast reply! Is there any example for this in the standard examples? I will take another look at the lessons, because have no memmory of the array handling.
Best regads!
06-09-2016 01:16 AM
06-09-2016 01:18 AM
Million thanks GerdW!