03-06-2013 05:57 AM
Hi, i have a little problem. I want to fill an array with results from a Flat Sequence Structure.
Sorry, i cant publicate the code, but here is a screenshot.
I hope someone can help.
(I'm absolutely begginer.)
Solved! Go to Solution.
03-06-2013 06:03 AM
Hi touchko,
you should use following items:
- shift register to keep the array stored for several iterations
- InitArray function to initialize the array for desired size
- ReplaceArraySubset to put your values into the right position (index)
It's a pity you can't show your VI. The small part is not sufficient for providing more help than this...
03-06-2013 06:15 AM
Thank you for the fast reply! 🙂
03-06-2013 10:05 AM - edited 03-06-2013 10:06 AM
Hi touchko,
I don't see any reason not to post that code in here. (When you try to get homework done your teacher should notice your helpers too. 🙂 )
You can put all your code into one loop.
I tried to optimize as much as possible, but several things are unclear to me. (Why do you generate 10 shuffled numbers, but only test the first 5 of them?)
03-06-2013 10:23 AM
I just want to put the results in to an array. Everything else worked perfect. (And no, i dont want to put my code into an array.)
03-06-2013 10:28 AM
@touchko wrote:
(And no, i dont want to put my code into an array.)
Arrays are for data, not code. Can you explain what you mean with the above statement?
03-06-2013 10:42 AM
Sorry, not array, i wanted to write loop.