>Um, it's the looping code we need to see really
OKkkkky; how about the part of the code that says:
'Wait until sample interval has passed before takeing the next sample (Tek-tip folks: this is where the majority of time is wasted burning up 50% CPU time for 1 hour when SampleInterval = 60...
Here is the code for the serial port polling/communications that only occurs once per hour. I deleted as much non-essential, repeated steps as possible to shorten up the routine. Please feel free to suggest improvements, like with serial communications handshaking. Thanks to all who responded...
Can VB6 poll the serial port say every hour without sucking up 40 to 50% of the CPU time looping continuously waiting for a 60 minute timer interval to occur? For example, is there a way for a VB6 routine to run in "sleep mode" more efficiently until it is time to do a short data transfer via...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.