LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

NI survey quiz question

So I was playing with the Survey quiz at:
http://research.ni.com/run/celvskillsquiz
and one of the questions is:
What is the value in Feedback Answer after the third iteration of the loop below?

The quiz says the correct answer is 8.  I say it's 4 as Feedback Answer is wired to the last loop value of the feedback node:
I=0 (first iteration) = 1 (initialization value)
I=1 (second iteration) = 2
I=2 (third iteration) = 4

Who's right? Smiley Indifferent

Message Edited by Jonnie 5 on 07-28-2006 10:23 AM

Message Edited by Jonnie 5 on 07-28-2006 10:25 AM



2006 Ultimate LabVIEW G-eek.

Message 1 of 10
(4,442 Views)
it's 8 - just try...
jochynator
LV 8.0.1, WinXP Pro
0 Kudos
Message 2 of 10
(4,426 Views)
It should be 8.

Message Edited by Jhoskins on 07-28-2006 11:06 AM




Joe.
"NOTHING IS EVER EASY"
0 Kudos
Message 3 of 10
(4,425 Views)

I get values of 1,2,4,8,16 so I think the quiz is wrong.

 

Message Edited by Dennis Knutson on 07-28-2006 09:11 AM

Message 4 of 10
(4,416 Views)
ahhh... the voice of reason!  Thank you Dennis! Smiley Happy
jochynator  -> your vi doesn't match the example.  note that the output should be wired to the Last Loop side of the feedback node (the arrow head's side).

Message Edited by Jonnie 5 on 07-28-2006 11:13 AM



2006 Ultimate LabVIEW G-eek.

0 Kudos
Message 5 of 10
(4,409 Views)

Yup...notice the subtle difference between the screenshot and jochynator's "just try" example...the original screenshot has a feed forward node, and jochynator's example has a feedback node.  Check the LabVIEW Help on Feedback Nodes for more information about the differences.  But yes, as the screenshot is given, with a feed forward node, '4' is the correct answer.  You can see this with the attached VI, saved in LabVIEW 7.0.  It's easiest to see the behavior with Execution Highlighting turned on.

-D

Message 6 of 10
(4,403 Views)
Man I did the same thing yep 4 is correct



Joe.
"NOTHING IS EVER EASY"
0 Kudos
Message 7 of 10
(4,398 Views)
I'm sorry, too slow thinking too fast working 🙂 Can me somebody tell how to create forward node? I can only create feedback.
jochynator
LV 8.0.1, WinXP Pro
0 Kudos
Message 8 of 10
(4,362 Views)
it's the same structure - it just flips around depending on the surrounding wires (annoyingly at times!).
For more on it's direction see:
http://digital.ni.com/public.nsf/allkb/6a0c9bb733d8f2ee86256e9800508e69


2006 Ultimate LabVIEW G-eek.

0 Kudos
Message 9 of 10
(4,358 Views)
One of the reasons I typically stick with shift registers. Feedback/feedforward nodes are just way too confusing....
 
Just right-click in the feedback node and convert it to a shift register. Suddenly, the code makes much more sense. 😄
Message 10 of 10
(4,337 Views)