LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Fundamental test question

Solved!
Go to solution

How does this even work? (see atachment) How do you know what the feed back loop is initialized to? I built this VI and put probes on it. The output of the FB is always zero. This is what I can tell , the index is saying to start insert at the second element in the array. The I terminal is element to insert (0,1,2) for the 3 itterations.  The out put of the FB is the array to insert into.

What am I missing?

 

Alan

0 Kudos
Message 1 of 6
(3,314 Views)
Solution
Accepted by topic author ajmartin

The answer is going to be D.


The array is initialized to

[1 8 6 2]

This is done by passing the array to the blue dot on the left side of the for loop.

 

Iteration 0

[1 0 8 6 2]

 

Iteration 1

[1 1 0 8 6 2]

 

Iteration 2

[1 2 1 0 8 6 2]

 

So you are left with choice D

Message Edited by Cory K on 09-15-2009 11:18 AM
Cory K
Message 2 of 6
(3,310 Views)

Well thanks for that. I have studied arrays and For loops, but was a little iffy on the feedback things, so I used LabVIEW detailed help. I knew the problem was in initializing the FB but I could not see any way to do it in this case. I mistakenly thought the blue dot was a tunnel. It went down hill from there. I see it now and now my example VI works

 

Thanks!

 

Alan

0 Kudos
Message 3 of 6
(3,276 Views)
please mark cory k as the solution
Harold Timmis
htimmis@fit.edu
Orlando,Fl
*Kudos always welcome:)
0 Kudos
Message 4 of 6
(3,273 Views)

Sorry , Im new around here. I think I gave the Kudos correctly, How do I mark cory K as the solution?

Alan

0 Kudos
Message 5 of 6
(3,254 Views)

go to option at the top right coner where you have marked your solution and select unmark as solution and than mark cory's

Harold Timmis
htimmis@fit.edu
Orlando,Fl
*Kudos always welcome:)
0 Kudos
Message 6 of 6
(3,252 Views)