10-01-2024, 10:14 AM
(This post was last modified: 10-01-2024, 01:04 PM by z-s.
Edit Reason: Used mycode
)
Thanks, that seems to be working fine. I'm a bit perplexed... Here's the final debug code I had running...
...and I don't quite see why that wasn't producing the correct results... I put the clock onto the output to see how long the action was taking and it seemed to be averaging around 140 - 160 ms...
Cheers
Code:
While ("True")
LDButtons = LDController.Buttons(1)
LDRecord = LDButtons + " " + Clock.ElapsedMilliseconds
File.WriteLine(DebugFile, DebugLineNo, LDRecord)
DebugLineNo = DebugLineNo + 1
Program.Delay(5)
EndWhile
...and I don't quite see why that wasn't producing the correct results... I put the clock onto the output to see how long the action was taking and it seemed to be averaging around 140 - 160 ms...
Cheers