The Daily CLAD

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

Re: Classic Series: FOR Loops 1 of 5

SercoSteveB
Active Participant

What is Numeric Value Out following execution of the VI?

Classic Series 1 of 5 For Loops 16_02_2015.png

a) 0

b) 1

c) 3

d) 4

Comments
Not applicable

a)

ashwinilele
Member

A

kirthika101
Member

a

A.Bernau
Member

As far as I understund the FOR loop will never executed, because of array lenght 0.
This means Numeric value out is never assigned any value.
But how do you know numeric out is 0? It can be anything by chance in the range of an integer?
Is there a LabVIEW rule for outputs for LOOPS with zero iterations?
Or is there a default for never assigned output values?
(Sorry for my limited English Grammar 😉

J_M_M
Member

I think it is A. The for loop will never execute due to the empty string array

Juvin
Member

a

dfjuggler
Member

@Andreas23, since no value is assigned to the tunnel, Numeric Value Out gets the default numeric value, which happens to be 0.

A.Bernau
Member

@dfjuggler

Thank you very much for the link. This is the information I looking for. Thanks and regards, Andreas

LordNobady
Member

A.

Welcome back


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
HaraldBraun
Member

C

MrStevenUND
Member

A.  Default = 0.

nik35324
Member

A

mini09
Active Participant

A

rgbernatchez
Member

A

SercoSteveB
Active Participant

Answer: A.  Nice one DavidCorney, ashwinilele, kirthika101, J_M_M, Juvin, dfjuggler, LordNobady, crossrulz, MrStevenUND, nik35324, gnshmrthy & rgbernatchez.

Remembering that FOR loops are lasy (they will always go for the least number of iterations) and that if they iterate 0 times that default values are passed to any output tunnels.

A nice link dfjuggler thanks.

SUYAM
Member

a

sac0071
Member

A

M.P.Bharghavi
Member

Ans:A

0