05-15-2009 07:11 PM
Hi,
I have a call library function node in a loop of a VI. The .dll file that the "call library function node" called is complied by a c file which was created by LabVIEW CVI. In the c file, I defined a static varable like this:
static double a = 0;
The problem is that once the VI is finished, the static varable "a" still keep the last value. If you run this VI again, the static varable "a" is not 0. If you want to clean this static varable, You have to close this VI and open again. Is there any methord I can clean this varable without close VI. Thanks.
Haifei
05-18-2009 05:51 AM
Hi Haifei,
If you have "a" as the output variable, then modify your C code in such a way that another variable takes "0" from labview VI and feeds it in to the variable "a" (something like the initialisation process). So that your problem get solved.
MRK (CLAD).