Why is my LabView while loop running too many times?

In a couple of weeks, I join a project that (currently) uses LabView for development. Before this happens, I am usually a little familiar, I create some simple projects in the trial version of the software. Someone challenged me to write a simple program that could form a simple division without using the division operator.

I wrote the program successfully, but my main loop whileseems to run too many times. Here is my program:

program image

, , <= 0, . , , , , x 0 ( x - , ). , , 0 "false", . , do-while, .

, () , ( ) python, , .

, , , , , . ?

+4
3

LabVIEW , , , NI, (. -). , .

, , ( , 0 ):

dividend = YYY
divisor = XXX

dividend = dividend - divisor
while dividend > 0:
    dividend = dividend - divisor 

LabVIEW, . ( ) . :

enter image description here

snipplet, , BD, (LV2014).

+3

, , , , .

Edit

(. 2), , , . , .

+1

Python, , . while LabVIEW do while, . , , .

0
source

Source: https://habr.com/ru/post/1568420/


All Articles