LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

recursivity?

Hi! I'm trying to implement the definition of the n-degree bspline basis. This is a basis of polynomials that are defined recursively. I've tried to do this whithin LabView6i, but I did not succeed. I think that could be done by writing some C code in a formula node, but it seems that functions whithin the node can't be defined (when I declare it, it is treated as a variable and the run compiler asks for a missing semicolon...). I would appreciate very much any help or suggestion. Thanks.
0 Kudos
Message 1 of 2
(2,818 Views)
In LabVIEW, a VI can call itself recursively the following way:
Make the VI reentrant. On the digram, the VI opens a strict reference to itself and use a "Call by Reference Node" wiring the data to the next level of recursion.
However this is very inefficient. Recursivity can better be implemented by stacking data from each level of recursion in array using shift registers.


LabVIEW, C'est LabVIEW

Message 2 of 2
(2,818 Views)