04-29-2019 01:59 PM
I have an array where there are 100,000 index points. I want to graph 30,000 index points with the array starting at index 70,000, but I don't know how to initialize the array to start from index 70,000?
Please advise.
Thank you.
04-29-2019 02:27 PM
Take a subset of the array and graph that, instead.
04-29-2019 02:30 PM
Since you already have the array, there is nothing to initialize.
You can use "array subset" to get part of the array (and set x0 of the x-axis to 70k) or you could just graph the entire array while setting the xmin, xmax to the "interesting" range.
04-29-2019 03:07 PM
Sorry I have two subarrays which I have made to go to an index length of 30K.
So I want to plot from 70k-100k and I don't know how to make the arrays start from 70k and go towards 100k for the 30k index length?
04-29-2019 03:30 PM
I have two 1D subarrays which I have made to go to an index length of 30K.
So I want to plot from 70k-100k and I don't know how to make the arrays start from 70k and go towards 100k for the 30k index length?
Instead what happens is that I just get the first 30k indexes going from 0-30k.
04-29-2019 03:30 PM
@IRG wrote:
Sorry I have two subarrays which I have made to go to an index length of 30K.
So I want to plot from 70k-100k and I don't know how to make the arrays start from 70k and go towards 100k for the 30k index length?
Your description makes absolutely no sense. Please attach a small VI to show that you have and what you want.
04-29-2019 03:37 PM
Well, you didn't attach your "sub-arrays", and I don't understand what you mean by "made to go to an index length of 30K" and "want to plot from 70k-100k". Are you saying that you want to plot your 30k plots so that, on the plot, the first point is labeled "70k" and the last point is at "100k"? If this is so, have you looked at the Plot Properties? Do you know what all the Properties mean? [If not, do you know how to use the LabVIEW "Help" option to "explain it all to you"?].
Bob Schor
04-29-2019 03:45 PM
Please don't create duplicate posts. People are already trying to help you in your other post.
04-29-2019 04:04 PM
I meant array subsets with a set index length which I imposed.
I guess the big question for me that you listed is the index manipulation.
Like I said I have two 1D array subsets which I would like to manipulate the index.
04-29-2019 04:27 PM
@IRG wrote:
I meant array subsets with a set index length which I imposed.
I guess the big question for me that you listed is the index manipulation.
Like I said I have two 1D array subsets which I would like to manipulate the index.
Still makes no sense. You cannot "manipulate" the index of an array, only the data of an array. You can have arbitrary ramps that map into the index of the array, but this has nothing to do with the array itself. The index is always a I32 integer, zero for the first element and incrementing by exactly one for each additional element.
Again, we cannot help unless you attach some code showing exactly what you have and what you want to get out of it. Until then, you are on your own. Sorry.