From Friday, January 17th 11 PM CDT (January 18th 5 AM UTC) through Saturday, January 18th 11:30 AM CDT (January 18th 5:30 PM UTC), ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I Call the MainVI from its SubVI, and this happen recursively?

Smiley Happy
Hi All,

How can I Call the MainVI from its SubVI, and this happen recursively?
Actually, LAbView 7.1 doesn't support recurssion?
Plz help me out!
0 Kudos
Message 1 of 9
(3,706 Views)
Hi Mishra,

did you search for recursion here in the forum? You can find a lot of threads on the topic (like this)!

Because of dataflow recursion is somewhat tricky to achieve - but it's possible! And it's possible independently of the labview version...
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 9
(3,702 Views)

Hi Mishra_RnD,

you can try to use the "Call by Reference Node". But why do you need recursion? What is about using loops?

Mike

0 Kudos
Message 3 of 9
(3,701 Views)
It would be interesting to know a little bit more about what you are trying to do because there might be other solutions...
0 Kudos
Message 4 of 9
(3,697 Views)
Hi Mike,

Thanks n nice to get this response from u.
But, I had already tried to call the main VI from the SubVI using "call by reference" many a times...but all in vain...
Plz suggest me other solutions...

With best of regards
Mishra_RnD

0 Kudos
Message 5 of 9
(3,663 Views)
Hi Mishra,

as told by other:
Please provide more details on your aim and/or attach your (stripped down) vis. We already told you how to do recursion in LabView!
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 9
(3,655 Views)