11-28-2016 05:52 AM
Hello there,
I am writing a program for my controllers and to test it I added random number generator to give me some kind of "signal value". I have two controlers, one for X and one for Y axis. So I want my results to be saved as a table. I am creating an array outside both loops and passing it to Replace Array Subset function that is inside second loop.When I output somehow(file, screen, etc.) I see that each time I get a value from RNG, it only changes a step-specific element of an array. All others are zeroes. When I get new value, another element changes and what's left is only zeroes. It's like my array has no memory. What's the issue in this case?
Thanks 🙂
11-28-2016 05:56 AM
"Shift Register" is the key word you are looking for....
Norbert
11-28-2016 08:19 AM
Resembles like this!
11-28-2016 08:34 AM - edited 11-28-2016 08:34 AM
Please leave out that Build Array stuff... that makes no sense but eventually gets you an out-of-memory error killing your application.