Company Events Academic Community Support Solutions Products & Services Contact NI MyNI

Passing the Last Value from the Previous Execution to the Feedback Node

LabVIEW 2013 Help

Edition Date: June 2013

Part Number: 371361K-01

»View Product Info

When you add a Feedback Node to the block diagram, the initializer terminal is attached to the node and the node globally initializes when the VI compiles or loads by passing the last value from the previous execution. You also can use the Configuration page of the Properties dialog box to configure a Feedback Node.

Complete the following steps to configure the Feedback Node to globally initialize when you have an input value and the VI compiles or loads.

  1. Add a Feedback Node to the block diagram.

  2. Wire an input value to the initializer terminal. When you set Delay to two or more executions or iterations, you can wire an array to the initializer terminal to initialize each delay element to an arbitrary value.
    Note  If a Feedback Node globally initializes and you set an initial value, by default the Feedback Node initializes to that value on the first call of the VI at the beginning of each execution. If you do not wire an input value to the initializer terminal, the initial input of the Feedback Node for the first execution is the default value for the data type.
  3. Right-click the initializer terminal and select Globally Initialize»Initialize On Compile Or Load.

 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit