LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Efficiently building an array of increasing values for a graph

I need to build an array of values increasing by 3E-8.  Initializing an array and changing each value in a while loop works fine, but it is terribly slow.  Is there a better (faster) way of building an array of increasing values like this?
0 Kudos
Message 1 of 3
(2,609 Views)
Is this a ramp that you're trying to create? If so, use the "Ramp Pattern" VI/function.
0 Kudos
Message 2 of 3
(2,592 Views)
Thanks for the suggestion, it looks like that could do what I'm looking for.  A kind tech solved the problem for me by phone -- I knew it was reading and writing the entire 100,000 element matrix to memory at each step, but I couldn't figure out how to get it to stop.  A shift register brought the run time from over 2 minutes to under 1 second.
 
Thanks again for responding!

Message Edited by Deamiter on 11-07-2006 06:46 PM

0 Kudos
Message 3 of 3
(2,579 Views)