Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   Feedback Nodes? (http://www.chiefdelphi.com/forums/showthread.php?t=103915)

DominickC 27-02-2012 20:33

Feedback Nodes?
 
Hello -

I've seen people use Feedback Nodes in their code when dealing with State Machines, however I've never quite understood them. I've researched them and read help files on them, but I'm still a bit lost. Any help/clarification?

Thanks, Dom

Alan Anderson 27-02-2012 21:18

Re: Feedback Nodes?
 
Feedback nodes are simple. They have an input and an output. The value that comes out of the output is the value that went into the input the previous time the feedback node executed.

DominickC 27-02-2012 21:21

Re: Feedback Nodes?
 
Ah, simple enough. Then, what does the "Initializer Terminal" do?

Chris Hibner 27-02-2012 21:25

Re: Feedback Nodes?
 
Quote:

Originally Posted by DominickC (Post 1135852)
Ah, simple enough. Then, what does the "Initializer Terminal" do?

Since it uses the value from the last time it was executed, what is the output the FIRST time it is executed? (answer: it's the value that you put in as the "Initializer Terminal".)

DominickC 27-02-2012 21:26

Re: Feedback Nodes?
 
Awesome, thanks!

Alan Anderson 27-02-2012 21:42

Re: Feedback Nodes?
 
The first time a Feedback Node runs, it won't have seen an input value yet, so it uses the value wired to its Initializer Terminal as its first output. If you leave that terminal unwired, the first output will be the default value for whatever type is connected to the input.

LabVIEW's help features can tell you all this. If you have contextual help turned on (toggle it with control-H), you can hover the mouse cursor over anything and get useful information in the Help window. There's usually a link to Detailed help at the end of the brief description.


All times are GMT -5. The time now is 11:19.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi