LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

spreadsheet not appending newline

Solved!
Go to solution

Why does this only give me one line rather than 5? 

labviewerror.JPGlabviewerror1.JPG

0 Kudos
Message 1 of 4
(2,596 Views)
Solution
Accepted by topic author Erny123

Hello Erny123,

 

Your stop logic is inverted- you need to use a greater than rather than a less than operator.  Right now, i=0 is less than 5, so the loop only executes once.

 

Regards,

Tom L.
0 Kudos
Message 2 of 4
(2,591 Views)

Wow thanks. Been looking at it for half an hour. 

0 Kudos
Message 3 of 4
(2,587 Views)

Or just click the conditional terminal to make it "continue if true". 😄

 

Still, since you know the number of iterations before the loop starts, a FOR loop would be the right choice here.

0 Kudos
Message 4 of 4
(2,562 Views)