03-26-2010 07:51 AM
Hello Denis,
your right!
The iteration terminal will return 0, because for the moment it returns that value the loop has been never executed before. This is what the iteration terminal tells you right at the beginning of your first and only loop iteration: "this loop has been executed 0 times before" (answer a).
hmm. I'm sorry. From my point of view, your example supports my opinion.
Now I don't want anybody to be upset about me being so insistent.
Trust me, I really know how the iteration terminal works. It's not about it's functionality in general, it's more about that stupid question that probably leads to multiple possible answers. I always try to read and understand such exam question as precise as possible and with this one I got into that problem.
I hope that question will not appear in the real exam, because I will mark a as the correct answer. Even if I know they want to here c.
Thanks to all of you for your posts!
Regards,
Thomas
03-26-2010 07:55 AM
They make a difference between :
03-26-2010 08:04 AM
03-26-2010 08:05 AM
Dennis Knutson wrote:
I don't see how this can be argued. You said yourself that with the first iteration, the value is 0. How can that mean something other than n-1? Simply wire a 1 to the N terminal of a for loop. You will never, ever get a value of 1 from the iteration terminal.
And what happen if you wire 0 to N ?
However I still argue that it is the formulation of the question that is misleading. Maybe due to a lag of my English, but that couldn't be that hard because I choosed the english version of the CLAD and passed quite well 😉
The iteration terminal count the iterations that the loop has (completely) executed. At the beginning of the iteration, when the terminal provide its value, this is correct. Later, after some dataflow,when the loop has finished you need to increment to get the correct total. It count history and we (hopefully) all know how it behave, and most of us choose the expected answer.
It would be interesting to know the percentage of failed answers for this question, because I can hardly believe that the same percentage don't know that the first output of iteration terminal is zero.
*/ Am I allowed to argue with a knight?? 😛 As long as he chooses the word and not the sword 😄 😄
03-26-2010 08:09 AM
You might be interested in this message.
Extract : As for the certification exam itself, please feel free to submit issues with specific questions to certification@ni.com
03-26-2010 08:24 AM
ST5 wrote:JB said: "Run attached example and convince yourself. c is definitely the correct answer."
It is not. In the meaning: not always.
A can be the correct answer too. See attachment.
I would descrebe the iterator: the number of times the loop has started, minus 1.
I took the CLAD exam once. Dit not pass only because of NI's unability to ask questions. NEVER AGAIN.
.
Your vi supports c as well or i am not getting it.
03-26-2010 08:37 AM
This concept WILL be on the exam. All the really fundamental concepts will be C is correct.
Alan
CLAD
03-26-2010 08:37 AM - edited 03-26-2010 08:38 AM
03-26-2010 08:45 AM
03-26-2010 08:48 AM - edited 03-26-2010 08:53 AM
And now that you have all agreed with answer "c" think about what the answer is if we have Iteration Parallelism enabled where the order of each iteration is not guarenteed. If you put an indicator on the FP of a loop run parallel, then "i" terminal will flash the interations in random order.
If you have not passed the CLAd yet, forget everything I said.
Ben
PS Thanks Muks!