From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
06-09-2015 08:15 AM - edited 06-09-2015 08:16 AM
everything recursive can be done iteratively
that's what loops are for
06-09-2015 08:17 AM
Yes i mean re-entant subvi that i set in properties of subvi
06-09-2015 08:27 AM
If i press boolean button it shout keep on update string indicator of main (because of subvi is recursive subvi).
subvi calls recursively whenver the second if condition becomes true or else it will not update string indicator.
For my testing if i make second if equlal to true then string indicator should update. (even if it updating with same string also ok ).
Regards
Punith
06-09-2015 08:59 AM
Hi Friends,
Do i need to provide any more information?.
Kindly suggest me.
Regards
Punith
06-09-2015 09:30 AM - edited 06-09-2015 09:30 AM
I'm not clear if you are clear on the terminology.
recursion: a subVI is able to call itself
reentrant: a subVI can be called multiple times from multiple places, they are separate instances of memory space and are able to run simultaneously.
non-reentrant: a subVI has only 1 instance that can be executed at a time. If it is called from somwhere else, it must wait until the first instance is done executing before the second one begins.
Actually, recursion never existed in LabVIEW until fairly recently. It is a very uncommon use case, and I doubt that you actually need recursion.
06-09-2015 09:50 AM
Actually, recursion never existed in LabVIEW until fairly recently. It is a very uncommon use case, and I doubt that you actually need recursion.
Oh man, how I love, when I find something that can be done with real recursion... It is as you say very uncommon, though.
06-09-2015 10:17 AM
my subvi nopt calling only once so it is recursive(calling itself). Anyone did implemation in my code.
Regards
Punith
06-09-2015 10:29 AM
You say in your VI's that the LAB_VB_AVTV2_data_calculation.vi is the recursive VI that is calling itself.
Have you attached that anywhere? I don't see it in any of your messages. Until we see that subVI, we can't see how you have it calling itself.
06-10-2015 12:39 AM
HI friends,
The subvi_test1.vi itslef LAB_VB_AVTV2_data_calculation.vi .
Did any one solve my problem?.
Regards
Punith
06-10-2015 12:42 AM
Only question is,
If SUBVi is recursive and its keep on giving output. How to update this output in main indicator.
If any one did changes in my main_test1.vi and subvi_test1.vi, kinldy let me know.
Regards
Punith
Regards
Punith