I'm using an external DLL suite "XLInput" from !QCLSolution to send data to Excel. Work great and stable.
I want to send info to Excel every 300 millisecond. How can I do that. Actually, have a code that is running, but for whatever reason it crash at midnight everyday.
Code: Select all
If Machinetime > referencetime then begin // Delay is over
Referencetime = Machinetime + delay;
//print (machinetime, " ", delay, " ", referencetime);
//if lastbaronchart then print (datastring);
//Bar info as been transmited then reset the Barcompleted value to Bar in Progress barcompleted = "BIP";
end; //If Machinetime > referencetime
The problem may be caused by the machinetime + delay variable that has an invalid value when the hour turn to 00:00:00 ( midnight).
Is there another way to execute a routine every 300 ms?
Hope I'm clear enough with my no so good English