The Daily CLAD

Community Browser
cancel
Showing results for 
Search instead for 
Did you mean: 

Re: Nested Loops

SercoSteveB
Active Participant

What is Numeric Value Out following execution of the VI?

Nested Loops 05_03_2015.png

a) 0

b) 1

c) 2

d) Undefined (the VI does not stop)

Comments
DesasterMaster
NI Employee (retired)

The For-Loop will not execute...so A

--------------------------------------------------------------------------------------------------------
Work with NI Hard- and Software for about 15 years now.

Certified LabVIEW Developer & TestStand Developer/Architect

--------------------------------------------------------------------------------------------------------

There are only two ways to tell somebody thanks: Kudos and Marked Solutions
A.Bernau
Member

Yes, I agree the For Loop will not execute. As far as I learned few days ago here in this forum we getting default values 0.
So one default value 0 is equal to the other default value 0. The while loop stops and gives the third default value 0 to the output.

update: it is not the third default value, it is the init value of shift register, Thank you LordNobody for make it more precise
A

sriveni
Member

A

LordNobady
Member

A.

As Andreas says the For loop will not execute, default value = default value so the while loop gives the initialization from the shift register from the for loop as output.

with that set to 0 the answer is 0.


Learning LabVIEW since January 2013
crossrulz
Knight of NI

A


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
nik35324
Member

A

MrStevenUND
Member

A. 

clendon.gibson@canrig.com
Member

A

whitecr
Member

Ans : A, for loop will not execute and while loop will stop in its first iteration.so What ever the value we are passing as input in shift register will be the output.

a.guzman_87
Member

A

Mohammed_Atef
Member

A

shargurudk
Member

Ans:A for loop will not execute.

dg7318
Member

A

ashwinilele
Member

A... For loop does not execute

SercoSteveB
Active Participant
Eng_Mohammad_Wa
Member

Ok

M.P.Bharghavi
Member

Ans:A

0