LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Setting Cycle stop for a while loop

Hello,

 

I have built the block diagram below for a Modulo 6 counter and I want to run it 7 times and only 7 times. As it is now it runs infinitly and makes it impossible to get the data I need.

Cw1994_0-1617093172604.png

 

Is there a way to set the loop to run once?

 

Thanks.

0 Kudos
Message 1 of 2
(1,023 Views)

Hi Cw,

 


@Cw1994 wrote:

I have built the block diagram below for a Modulo 6 counter and I want to run it 7 times and only 7 times.


When you know how many iterations your loop should run then you should use a FOR loop instead of a WHILE loop…

 

Or employ polymorphism:

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 2
(1,015 Views)