LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

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

Solved!
Go to solution

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

 

want results 2.png

0 Kudos
Message 1 of 7
(1,168 Views)
Solution
Accepted by PuriK.

Hello PuriK,

 

Try to adopt similar to the attached Code Snippet

 

 

 

----------------------------------------------------------------------------------------------------------------
Palanivel Thiruvenkadam | பழனிவேல் திருவெங்கடம்
LabVIEW™ Champion |Certified LabVIEW™ Architect |Certified TestStand Developer

Kidlin's Law -If you can write the problem down clearly then the matter is half solved.
-----------------------------------------------------------------------------------------------------------------
Message 2 of 7
(1,153 Views)
Solution
Accepted by PuriK.

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
(1,135 Views)

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

0 Kudos
Message 4 of 7
(1,098 Views)

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
(1,094 Views)

@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

0 Kudos
Message 6 of 7
(1,074 Views)

@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

0 Kudos
Message 7 of 7
(1,073 Views)