This is going to be a na�ve question after this thread has been going on for so long, but can anyone send me (or point me to) a LV7 (or earlier) example of recursion? It sounds very interesting but I am having trouble wrapping my head around this concept.
Thanks, Johann Junginger. -----Original Message----- From: Jean-Pierre Drolet [mailto:[EMAIL PROTECTED] Sent: Friday, June 04, 2004 12:31 To: Dominic Lavoie; Info-LabVIEW Subject: Re: Recursive Code Challenge When I said efficiency, I was refering to the fact that recursive calls are reputed inefficient in LabVIEW. I guess It is less efficient to instanciate the VI space than to pre/reallocate an array for next data level. Often it is not possible to figure how is "big enough" without first digging in the recursion tree. >It seems to me that recursion is needed when you you didn't think you would have needed it in the first place!!! >(design phase) It is the nature of the task that requires recursion, not the designer to decide! But the programmer can implement it with recursive calls or while loops. Jean-Pierre Drolet www.avensys.ca ----- Message d'origine ----- De : "Dominic Lavoie" <[EMAIL PROTECTED]> � : "Jean-Pierre Drolet" <[EMAIL PROTECTED]>; "Info-LabVIEW" <[EMAIL PROTECTED]> Envoy� : 4 juin, 2004 10:13 Objet : RE: Recursive Code Challenge Couldn't you just allocate a big enough stack to begin with, or allocate chunks of it as you go on(initialize and resize array) and get an efficient behavior? It seems to me that recursion is needed when you you didn't think you would have needed it in the first place!!!(design phase)
