The Daily CLAD

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

Re: Feedback Frenzy

Member

What are the values of Boolean Out 1, 2 & 3 following execution of the VI?

 

Feedback Frenzy.png

 

a) Boolean Out 1 = FALSE, Boolean Out 2 = FALSE, Boolean Out 3 = FALSE

b) Boolean Out 1 = TRUE, Boolean Out 2 = FALSE, Boolean Out 3 = TRUE

c) Boolean Out 1 = FALSE, Boolean Out 2 = TRUE, Boolean Out 3 = FALSE

d) Boolean Out 1 = TRUE, Boolean Out 2 = TRUE, Boolean Out 3 = TRUE

Comments
Member

D.

Pen and paper required to solve Feedback Frenzy. 

Knight of NI

D

No pen and paper required.  You just have to understand that shift registers and feedback nodes are almost exactly the same thing and count the value delays.  It should become obvious (after about 30 seconds) that all three options are doing the same thing.

 

Now just to throw a kink into this.  Call this VI inside of a FOR loop that will run twice...

Spoiler
You will get all FALSE since the feedback nodes are initializing at start up (on first call) while the shift registers are initializing each time the FOR loop starts.  This can be fixed by moving the initialization of the feedback nodes to the loop.

There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines

The discussions from the Advanced User Track is not over. Join in the conversation: 2016 Advanced Users Track
Member

Yes.  I had to draw this one out. 

 

D