02-04-2009 11:48 PM
Solved! Go to Solution.
02-04-2009 11:50 PM
02-05-2009 12:03 AM
02-05-2009 01:24 AM
HI,
Take 1D array constant outside the loop and connect this to while loop and change the terminal to shift register. After this use build array function in first element of build array connect shift registers input and connect your data to second terminal, and then output of build array function give to output terminal of shift register.
you can monitor the data at the end of build array function, hope this helps
Regards
Santosh
02-05-2009 01:55 AM
I think this is what's suggested in previous post.
You'll ofc need to change my integer to your values.
/Y
02-05-2009 01:59 AM - edited 02-05-2009 02:00 AM
If you want to intereactively built the array inside the loop, you need to built it in a shift register or feedback node, e.g. as follows.
02-05-2009 12:15 PM
thanks guys, So i finally got this one solved. My function now sequentially fills a 1-D array with values.
02-05-2009 12:22 PM - edited 02-05-2009 12:23 PM
Then mark which ever reply best answered your question as the solution rather than your own reply.
By the way, instead of doing an addition of 1, there is a +1 increment function on the numeric palette to do it in one step.
02-05-2009 12:45 PM - edited 02-05-2009 12:45 PM
mldelibero wrote:thanks guys, So i finally got this one solved. My function now sequentially fills a 1-D array with values.
There are a couple of problems with your solution:
02-05-2009 01:06 PM
Right, I see what you are saying about initializing, that did fix one of the bugs.
I did try the feedback loop inside of a while loop. It appears to work exactly the same as my previous loop (which is good). How is this more efficient? One of the reasons that I orrinally chose to continuously resize the array is that I will not know how many times that it has to run beforehand.