LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Results into array.

Solved!
Go to solution

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.)

0 Kudos
Message 1 of 7
(2,664 Views)
Solution
Accepted by topic author touchko

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...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 7
(2,656 Views)

Thank you for the fast reply! 🙂

0 Kudos
Message 3 of 7
(2,646 Views)

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. 🙂 )

check.png

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?)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 7
(2,611 Views)

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.)

0 Kudos
Message 5 of 7
(2,602 Views)

@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?

0 Kudos
Message 6 of 7
(2,597 Views)

Sorry, not array, i wanted to write loop.

0 Kudos
Message 7 of 7
(2,589 Views)