From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Loop Block

Solved!
Go to solution

And what is that value you are setting it to?

0 Kudos
Message 11 of 17
(588 Views)

@RavensFan  ha scritto:

And what is that value you are setting it to?


I tried 5, 10, 50. All integer value

0 Kudos
Message 12 of 17
(587 Views)
Solution
Accepted by topic author Ivv

And did you run highlight execution?

 

If you have value=5, The first comparison in that loop is i<= value.   Since it is the first iteration, i =0.   So i <= value becomes 0<= 5.   TRUE!   True goes to the OR then the stop conditional terminal.  Loop is done after that first iteration.

 

Perhaps you wanted >=  ??

0 Kudos
Message 13 of 17
(579 Views)

@Ivv wrote:

@RavensFan  ha scritto:

And what is that value you are setting it to?


I tried 5, 10, 50. All integer value


Perhaps you want an integer and not a float.  Make the terminal and wire blue.


"Should be" isn't "Is" -Jay
0 Kudos
Message 14 of 17
(573 Views)

@Ivv wrote:

 

I have a problem with this i, i's value isn't passed to the Tank variable and block this Loop work.
Can you help me?

 

I would like changing my work from this

 

To this modul

 


OK, instead of attaching gibberish code, take a step back and tell us what the program is supposed to do. I doubt any of your local variables are needed. There is nothing to "fix", because this needs to be rewritten from scratch with proper dataflow in mind. Won't be hard!

 

So, answer one question:

If the program is running, what is the user supposed to see and how should the program react if the user does nothing or changes each of the controls?

 

Simple as that! 😄

0 Kudos
Message 15 of 17
(567 Views)
 
 
ok ... I'm a donkey. Thanks so much

 

0 Kudos
Message 16 of 17
(553 Views)

@Ivv wrote:
 
 
ok ... I'm a donkey. Thanks so much

 


(Such a cute translation.)

 

No, you are NOT an @$$.  Everyone does this kind of stuff because we're all human.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 17 of 17
(549 Views)