08-27-2009 11:48 PM
I am trying to update my array the "furthest down" index needs to be updated it is also random but stays towhere it looks like the LED's are connected so... if anyone could help it would be wonderful
the second picture is what i want it to look like
08-28-2009 12:13 AM
08-28-2009 12:30 AM
Ran out of time to edit last post.
08-28-2009 12:41 AM
08-28-2009 12:44 AM - edited 08-28-2009 12:46 AM
I'm not sure of the purpose of you initializing the array in the while loop itself... If you do that, you're basically overwriting whatever is done in the replace array subset.
Please ignore this post. Apologies...
08-28-2009 12:47 AM
08-28-2009 12:54 AM - edited 08-28-2009 01:01 AM
I am not totally sure what you are shooting for, but you could add another shift register to keep track of a fractional index. You could use 2 * Random[0,1] - 1 to generate a random number between -1 and 1 and then add that in each cycle. The replace array subset function will simply pick off the integer part, you could add a round as well.
Past my bedtime, good luck.
I am getting some deja vu, seems vaguely similar to this little game I posted, if you can sift through the code you may get a few ideas.
http://forums.ni.com/ni/board/message?board.id=BreakPoint&message.id=8209#M8209
08-28-2009 01:07 AM
lol wow took you a while I saw the game and I figured I would try it out and the only thing I have left is making the background flow properly thanks for noticing lol
have a good night
08-28-2009 02:52 AM
08-28-2009 03:05 AM
I'm still confused... But are you trying something like this?