The Daily CLAD

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

Re: Classic Series: FOR Loops 2 of 5

SercoSteveB
Active Participant

What is Output Cluster following execution of the VI?

Classic Series 2 of 5 For Loops 17_02_2015.png

Classic Series 2 of 5 For Loops Answers 17_02_2015.png

Comments
Not applicable

A

kirthika101
Member

c

sathishp91
Member

C

A.Bernau
Member

C

ashwinilele
Member

C.

J_M_M
Member

A.

Base on what I understood from this question, the N terminal indicates how many times the loop will run and it would depend on the input arrays as well as the value on the N terminal. The for loop always run the fewest time possible, in this case 3 times.

Juvin
Member

A

LordNobady
Member

A.


Learning LabVIEW since January 2013
HaraldBraun
Member

A

Kriti27
Member

C

A.Bernau
Member

OK, I was wrong. First I don’t like this implementation of LabVIEW

1. To give this information via N means it is a redundant information. After finishing the loop i has the same information (n = i+1)

2. My optical first impression was you assign a value to N and later you read the value N so it should be the same

Later I recognized you can read N=3 in the first iteration of the loop. I did not expect this. Yes this makes sense! Now I like it 😉

Thank you Steve for this special Daily CLAD to clarify this .

danielb85
Member

A

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

A.  Another I didn't expect.  Thanks Steve!  That can be useful in troubleshooting!

mini09
Active Participant

Very tricky, I new that N will return the value it's been wired. But today I learned that it will give the maximum times the loop is runned.

Answer is A.

nik35324
Member

A

rgbernatchez
Member

A

Mohammed_Atef
Member

Good tricky

SercoSteveB
Active Participant

Answer: A.  Nice one DavidCorney, J_M_M, Juvin, LordNobady, HaraldBraun, danielb85, crossrulz, MrStevenUND, gnshmrthy, nik35324 & rgbernatchez

This one divided opinion. Andreas23 makes an interesting point, the N Terminal doesn't look like it should modify the value wired to it......but it does and it is actually useful for post loop iteration count processing.

SUYAM
Member

Good tricky,,thank u steve .. this is new to me.. i learned something new

sac0071
Member

A

hemanths
Member

Very Tricky

M.P.Bharghavi
Member

Ans:A

3

False

LabVIEW