LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to get end value of while loop

i've construct a simple block diagram to illustrate the volume of a tank..the question is how can i obtain the final value of a tank after i stop the operation inside the while loop.

i keep getting an initial value after i stop the operation..thanks for help

 

endvalue.png

0 Kudos
Message 1 of 5
(2,877 Views)
Message Edited by Phillip Brooks on 03-04-2010 07:40 AM
0 Kudos
Message 2 of 5
(2,865 Views)

Hi shafiesani,

your indicator "Tank1 (%)" contains the last value. Where should another value com from?

 

Mike

0 Kudos
Message 3 of 5
(2,860 Views)

Hi,

 

I would connect the shift register output to get the final tank value instead of the loop iterator...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 5
(2,858 Views)
Mike is right. The indicator inside the while loop will give you the final result.
0 Kudos
Message 5 of 5
(2,842 Views)