I just began learning Labview, with not much programming experience aside from a course in MATLAB, so i apologize if my question does not sense\not enough detail
There is something i am trying to do:
I have a 1D array with 1001 indexes, and i am now trying to find a way to output (or plot on a graph) each of those indexes (starting at index 0) sequentially.
Could someone please help me understand how to do this?
I attached an image of what i tried to do based on what i could learn from some google searches and youtube videos, but my graph does not appear correct - it seems to spike up and down between timesteps
(please see attached images)
Solved! Go to Solution.
You are doing way too much work. A chart already contains a history buffer, so there is no need to build an array.
All you need is a single FOR loop. place the chart terminal inside the loop and wire the array across the loop boundary, so it is autoindexing. Place a reasonable wait inside the loop and press run. That's it! (The FOR loop will stop once the array runs out of elements. No need to wire N).
See how far you get. 😄
To summarize, here are a few more comments about your code: