Twullf
Mechanical
- Jan 24, 2012
- 196
I have written a code to pull data from an excel spread sheet which is being continuously updated by a program called WinDaq. The data is load cell data and the intent is to let this run for a week and pull data every twenty minutes.
For some reason after 13 hours the code just stopped. The computer did updates last night, but that was at 3 am and the code stopped prematurely at 8 pm. I have a save showing that the WinDaq software continued to pull data at least another 20 minutes.
I'd post my code, but it worked well for 13 hours and I don't think that the problem is there. I suspect there is an error handler or something in 2003 to prevent code from continuing excessively and I am not accounting for that.
Has anyone run into this issue before. Here is a quick run down on the code logic
Privat bStop As Boolean 'determines when stop button has been pressed
while not bStop
Do the data collection
For counter 1 to 120
' Dump the buffer every 10 seconds for 20 minutes to maintain connection to WinDaq and register button cancellation
Next counter
Save the file 'The reason I have data 20 minutes after that last data collection
Loop
Thanks in advance for any help
For some reason after 13 hours the code just stopped. The computer did updates last night, but that was at 3 am and the code stopped prematurely at 8 pm. I have a save showing that the WinDaq software continued to pull data at least another 20 minutes.
I'd post my code, but it worked well for 13 hours and I don't think that the problem is there. I suspect there is an error handler or something in 2003 to prevent code from continuing excessively and I am not accounting for that.
Has anyone run into this issue before. Here is a quick run down on the code logic
Privat bStop As Boolean 'determines when stop button has been pressed
while not bStop
Do the data collection
For counter 1 to 120
' Dump the buffer every 10 seconds for 20 minutes to maintain connection to WinDaq and register button cancellation
Next counter
Save the file 'The reason I have data 20 minutes after that last data collection
Loop
Thanks in advance for any help