Jump to content

Feedback Node Initialization


mje

Recommended Posts

I've got some weird feedback node behavior, and I'm hoping it's just that I don't understand these blasted things.

What does it mean to initialize a feedback node? Seems simple enough to me, wire up a constant, and it's initialized such that the first value returned is what you've initialized it to. Well, not quite:

post-11742-0-52730000-1312903191_thumb.p

Plop this snippet in a blank VI, and run it. What do you get? I've confirmed these results in LV2010 SP1 and LV2011:

Compile/Load value: 2

Compile/Load Incremented: 1

First Run value: 2

First Run Incremented: 1

Each subsequent call to the VI as long as it remains in memory increments both the Compile/Load values by 1. I expect this due to scoping the initialization as Compile/Load. However, there are other things amok:

Why is the initial value returned from either feedback node 2 when it has been initialized with 1?

Why is the incremented value one less than the original value?

Help?

Link to comment

Sigh...

Thank you. I...I don't know how I managed to get so many of my input/outputs overlapping like that. Maybe it was because I was right clicking on wires to insert nodes rather than placing them myself? I...urgh. Some days it does not pay to wake up.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.