I have programmed a DLL (with Microsoft Visual C/C++) that performs a
pure delay of a digital signal (z-delay), y[n] = x[n-D].


The DLL creates a global buffer of the same size as the needed delay,
to save the previous samples.

Labview calls the DLL using a VI. When using this VI in the labview
application the DLL performs correctly.

But when I use or call several times the same VI, that contains the
DLL, in the same
 labview application, the DLL works incorrectly mixing the data from
the different calls (it seems the global buffer is shared between the
different VIcalls that contain the DLL).

Is possible to use the same DLL (with internal global variables)  in
the same application without sharing the same global variable to
different call? Diferenciatig the global scope to each VI call.

 Thanks in advance.

Reply via email to