LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

iteration, loop and counter

Solved!
Go to solution

Hi,

 

I faced a problem as mentioned below.

1) i can't get incremental iteration1 (refer to excel sheet column D). In fact, what i want is 1,2,3,4,5,6.

2) incremental iteration2 (refer to excel sheet column E). In fact, what i want is 1,2,3,4.

3) 3 extra data, 6 (refer to excel sheet column A,B and C). 

What i can get is the end number (6 in excel sheet column D and 4 in excel sheet column E).

Attached 2 image files. "Test result" and "expect result" .

Attached a project file for your study and correction.

 

thank you very much.

best regards.

 

0 Kudos
Message 1 of 4
(1,658 Views)

I find it interesting how different people find solutions. What thought process was used to come up with this?

 

Frozen_1-1616164150126.png

 

 

 

---------------------------------------------
Former Certified LabVIEW Developer (CLD)
0 Kudos
Message 2 of 4
(1,612 Views)
Solution
Accepted by topic author Jeffrey_Oon

I think this is what you are after.  I highly recommend you avoid using the Write Delimited Text File when you repeated write to a file.  Instead, open/create the file, write your header, inside your loop you write to the file, and close the file when you are done.  You should also avoid pretty much anything in the Express palette because the Dynamic Data Type is a cancer.  You can just use Build Array instead.



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 3 of 4
(1,602 Views)

Hi, Crossrulz,

 

Thank very much for helping me solve my problem.

 

best regards.

0 Kudos
Message 4 of 4
(1,576 Views)