08-28-2007 03:46 PM
@JeanPierre wrote:
And unfortunately, the last time I checked the recursion chain A_VI >> B_VI >> A_VI is not allowed
8.5 has native recursion for LVOOP VIs (I think it's dynamic dispatch ones, but I'm not sure). It might be able to handle that as well.
P.S. Tomi, yes, I was actually thinking as well that this might be a good candidate for learning LVOOP.
08-28-2007 04:36 PM
@Ben wrote:
Thank you once again JPD.
You wrote;
And unfortunately, the last time I checked the recursion chain A_VI >> B_VI >> A_VI is not allowed, only A_VI >> A_VI >> A_VI is possible.
Well I did not know that, so I did exactly that in the example I posted (provided the data structure calls for it).
I have also tested doing A >>> B >>> A >>> B as far I was willing to test it.
I have single stepped it through those calls (in LV 8.2.1) to verify it is doing exactly that.
Warning:
Do NOT abort a VI while single stepping into recursive calls. LV will hang forever if you do. Better to get out of the calls and then abort.
Ben
LabVIEW, C'est LabVIEW
08-29-2007 05:54 AM
" I checked with LV8.2 and LV8.5 and now it works (at least to 10 levels). "
Cool!
I don't remember seeing this change in a release note but without that functionality, this example would not have worked.
Don't you love when NI throws in functionality we need before we need it?
Ben
08-29-2007 06:55 AM
You speak for yourself...
@Ben wrote:Don't you love when NI throws in functionality we need before we need it?
LabVIEW, C'est LabVIEW
08-29-2007 07:11 AM
It's good to see you back JP!
Drop by more often.. 🙂
Good comments on the nugget. Thanks!
04-24-2008 07:41 AM
For a related thread on LAVA see here where you will find that Yair (also known as "tst" and "Yen" ) has taken some of the above methods as a starting point and has managed to back-save for LV 7.
Ben
04-24-2008 08:29 AM
Just to clarify, what I backsaved was MGI's version. Originally, it used 8.x only features, but I replaced some of them with some of the OpenG code. The result is considerably faster than the current OpenG code (I've seen improvement by factors of ~20 to ~100).
Important note - what I posted on LAVA is NOT production level code. It was just a proof of concept. It works, but will fail to operate correctly under any number of circumstances.
03-19-2009 11:34 AM
These are all wonderfully meaty nuggets that directly address my application.
Thank you.
03-19-2009 11:51 AM
wildcatherder wrote:These are all wonderfully meaty nuggets that directly address my application.
Thank you.
I am very glad it helped Wild!
Ben
09-22-2011 10:11 PM
I updated this to include some of the above suggestions and adapted it to use TDMS versus config files here.