LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Indexing an array

It sounds like you are talking about array subset.  If you already know about it and are having problems with it,  (Read the context help and detailed help), then you should attach the VI with your failed attempt, and data saved into the controls by default.  Save and attach and we can see what you are trying to do and where you are going wrong.

 

It sounds like the answer is as simple as this.

 

Example_VI

0 Kudos
Message 11 of 14
(571 Views)

So you posted a question that we didn't understand, we tried to "guess" your meaning and make suggestions (but they seemed to be wrong), asked you to post some code to clarify (which you didn't do), suggested more solutions (but you said they were wrong), and you still haven't clarified the various solutions we've proposed nor helped us to understand your needs by posting your code.

 

So now that you say you have 100k array and want to plot the last 30k points.  I created a tiny demo where I created a 1k array with the first 700 being random numbers and the last 300 being a straight line from 0 to 1.  Here are two plots of the same array -- is this what you want?  I'll tell you the exact same wire holding the entire 1k array goes to both charts.

Plot last 30%Plot last 30%

Bob Schor

0 Kudos
Message 12 of 14
(551 Views)

@Bob_Schor wrote:

So you posted a question that we didn't understand, we tried to "guess" your meaning and make suggestions (but they seemed to be wrong), asked you to post some code to clarify (which you didn't do), suggested more solutions (but you said they were wrong), and you still haven't clarified the various solutions we've proposed nor helped us to understand your needs by posting your code.

 

So now that you say you have 100k array and want to plot the last 30k points.  I created a tiny demo where I created a 1k array with the first 700 being random numbers and the last 300 being a straight line from 0 to 1.  Here are two plots of the same array -- is this what you want?  I'll tell you the exact same wire holding the entire 1k array goes to both charts.

Plot last 30%Plot last 30%

Bob Schor


Maybe I've become too crotchety in my old age, but I tend to ignore people like IRG.  I'm happy to help people, as long as they make a reasonable effort at cooperation.  Otherwise, I turn my back.

"If you weren't supposed to push it, it wouldn't be a button."
0 Kudos
Message 13 of 14
(533 Views)

@paul_cardinale wrote:

Maybe I've become too crotchety in my old age, but I tend to ignore people like IRG.  I'm happy to help people, as long as they make a reasonable effort at cooperation.  Otherwise, I turn my back.

Been an academician too long, I still have the misguided notion that some people are teachable (though they may require a few kicks in the behind -- there's another one just like this I keep trying to get to use IBM's Famous Slogan ...).

 

Bob Schor

0 Kudos
Message 14 of 14
(517 Views)