LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Question about re-usuing subVIS.

Solved!
Go to solution

@jackstokley wrote:

@rajiv85 wrote:

Grateful if you could please post an example with the feedback node. Never seen one implemented for that purpose.


If you take the examples that I send through before as a starting point, its as simple as right clicking on a shift register and pressing "Replace with feedback node". See below.

 

http://zone.ni.com/reference/en-XX/help/371361R-01/lvhowto/replace_sr_with_feedback_n/

 

Jack


Though you don't want the Feeback in the sub-vi, that would give the exact same result. The point is using Controls and Indicators to keep this data outside of the sub-vi, in a feedback node, on the parent block diagram.

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 31 of 33
(612 Views)

So, as i suggested, if you instead of keeping the time as an internal memory through a shift register keep it outside in a feedback loop it all works well.

Feedback subvi.png

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
Message 32 of 33
(586 Views)

Very interesting work around. Thanks!!

Message 33 of 33
(557 Views)