# LabVIEW

cancel
Showing results for
Search instead for
Did you mean:

Solved!
Go to solution

## Add row to 2-D array on each loop iteration and update that 2-D array after each loop iteration

Hi,

I want to create a vi that each row is updated every time after each loop of iteration. However, what I can do now is get all data at once in the array named "all results".

Any ideas or hints will be a big help to me.

Best regards,

Plu

Message 1 of 7
(398 Views)
Solution
Accepted by PuriK.

## Re: Add row to 2-D array on each loop iteration and update that 2-D array after each loop iteration

Hello PuriK,

Try to adopt similar to the attached Code Snippet

----------------------------------------------------------------------------------------------------------------
பழனிவேல் திருவெங்கடம்
Kidlin's Law -If you can write the problem down clearly then the matter is half solved.
-----------------------------------------------------------------------------------------------------------------
Message 2 of 7
(383 Views)
Solution
Accepted by PuriK.

## Re: Add row to 2-D array on each loop iteration and update that 2-D array after each loop iteration

Hi Puri,

@PuriK. wrote:
However, what I can do now is get all data at once in the array named "all results".

Any ideas or hints will be a big help to me.

The answer to this question is "THINK DATAFLOW!"

When you want to show data inside the loop (with each iteration) then the indicator has to be inside this loop…

Best regards,
GerdW

using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 3 of 7
(365 Views)

## Re: Add row to 2-D array on each loop iteration and update that 2-D array after each loop iteration

@GerdW wrote:

Hi Puri,

@PuriK. wrote:
However, what I can do now is get all data at once in the array named "all results".

Any ideas or hints will be a big help to me.

The answer to this question is "THINK DATAFLOW!"

When you want to show data inside the loop (with each iteration) then the indicator has to be inside this loop…

Sorry, I still cannot solve this issue. Could you give me more hints?

Ps. Can I unmark the solution mark?

Message 4 of 7
(328 Views)

## Re: Add row to 2-D array on each loop iteration and update that 2-D array after each loop iteration

Hi Puri,

@PuriK. wrote:

Sorry, I still cannot solve this issue. Could you give me more hints?

You already got a solution from Pazhanivel, what else do you need?

@PuriK. wrote:

Ps. Can I unmark the solution mark?

Yes.

Best regards,
GerdW

using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 5 of 7
(324 Views)

## Re: Add row to 2-D array on each loop iteration and update that 2-D array after each loop iteration

@GerdW wrote:

Hi Puri,

@PuriK. wrote:

Sorry, I still cannot solve this issue. Could you give me more hints?

You already got a solution from Pazhanivel, what else do you need?

Sorry again. I checked your comment before Pazhanivel's solution. His solution is exactly what I am looking for.

By the way, thank you again for your comments on this topic and the previous topics. You have been helping me several times. I am looking forward to getting more help from you in the future.

Highly respect,

Plu

Message 6 of 7
(304 Views)

## Re: Add row to 2-D array on each loop iteration and update that 2-D array after each loop iteration

@PalanivelThiruvenkadam wrote:

Hello PuriK,

Try to adopt similar to the attached Code Snippet

Thank you so much for your help. This is a wonderful solution that can help me to finish this task.

Attach herewith my latest vi. I will try to make it more effective and clean in the future.

Best regards,

Plu

Message 7 of 7
(303 Views)