icular function, it seems as though it still contains data from last call? How can I rectify this? Do you see any problems with this function? It seems to work fine the first set of function calls but, when I try a second round it doesn't work properly.First, it looks like you intentionally have the function set up to retain the data for some variables (lastVoltage, lastTime, arrayPtr, totalTime). The static flag means that it will retain these values between calls to this function. The other variables will not retain data (except for the potentialArray buffer which must be defined globally). What exactly is the complaint?
Best Regards,
Chris Matthews
Measurement Studio Support Manager