PLUS+1 User Forum

PLUS+1 Hardware => Displays => Topic started by: Mike AA on May 04, 2017, 04:31:41 PM

Title: BUTTON DELAY
Post by: Mike AA on May 04, 2017, 04:31:41 PM
I am having some timing issues when it comes to pressing the buttons on the DP710. I get full functionality but when I do a delay on, for say 3 seconds it actually takes more like 6 seconds. I haven't checked my loop time recently as I am away from the display to connect directly. Attached is my snippet for what I am doing. I am using this function in a few locations to reset counters and timers.

Thanks,
Mike

Title: Re: BUTTON DELAY
Post by: FluidPowerTom on May 04, 2017, 07:42:28 PM
Use a base time of 10 or 100ms, so change it so that your base time is T10M.  Then change the 3 to 300.  For whatever reason the second (T1S) base timer is very coarse and inaccurate.
Title: Re: BUTTON DELAY
Post by: Mike AA on May 04, 2017, 07:47:40 PM
Thanks FluidPowerTom!

I wondered if that might be something to do with it, all my other functions that use ms seem to work just fine.

I will get it switched and try it out.

Thanks,
Mike